QKeyboardDevice Class
(Qt3DInput::QKeyboardDevice)QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects. More...
Header: | #include <QKeyboardDevice> |
qmake: | QT += 3dinput |
Since: | Qt 5.5 |
Instantiated By: | KeyboardDevice |
Inherits: | Qt3DInput::QAbstractPhysicalDevice |
Properties
- activeInput : Qt3DInput::QKeyboardHandler* const
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QKeyboardDevice(Qt3DCore::QNode *parent = nullptr) | |
Qt3DInput::QKeyboardHandler * | activeInput() const |
Reimplemented Public Functions
virtual int | axisCount() const |
virtual int | axisIdentifier(const QString &name) const |
virtual QStringList | axisNames() const |
virtual int | buttonCount() const |
virtual int | buttonIdentifier(const QString &name) const |
virtual QStringList | buttonNames() const |
- 9 public functions inherited from Qt3DInput::QAbstractPhysicalDevice
- 13 public functions inherited from Qt3DCore::QNode
- 31 public functions inherited from QObject
Signals
void | activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput) |
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Static Public Members
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Additional Inherited Members
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.
Property Documentation
activeInput : Qt3DInput::QKeyboardHandler* const
Holds the active QKeyboardHandler of the device.
Access functions:
Qt3DInput::QKeyboardHandler * | activeInput() const |
Notifier signal:
void | activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput) |
Member Function Documentation
QKeyboardDevice::QKeyboardDevice(Qt3DCore::QNode *parent = nullptr)
Constructs a new QKeyboardDevice instance with parent.
[virtual]
int QKeyboardDevice::axisCount() const
Reimplemented from QAbstractPhysicalDevice::axisCount().
Returns the axis count.
Note: Currently always returns zero.
[virtual]
int QKeyboardDevice::axisIdentifier(const QString &name) const
Reimplemented from QAbstractPhysicalDevice::axisIdentifier().
Returns the axisIdentifier matching the name.
[virtual]
QStringList QKeyboardDevice::axisNames() const
Reimplemented from QAbstractPhysicalDevice::axisNames().
Returns the axis names.
Note: Currently always returns empty QStringList.
[virtual]
int QKeyboardDevice::buttonCount() const
Reimplemented from QAbstractPhysicalDevice::buttonCount().
Returns the button count.
[virtual]
int QKeyboardDevice::buttonIdentifier(const QString &name) const
Reimplemented from QAbstractPhysicalDevice::buttonIdentifier().
Returns the buttonIdentifier matching the name.
[virtual]
QStringList QKeyboardDevice::buttonNames() const
Reimplemented from QAbstractPhysicalDevice::buttonNames().
Returns the button names.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.12/qt3dinput-qkeyboarddevice.html