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 |
This class was introduced in Qt 5.5.
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 override |
virtual int | axisIdentifier(const QString &name) const override |
virtual QStringList | axisNames() const override |
virtual int | buttonCount() const override |
virtual int | buttonIdentifier(const QString &name) const override |
virtual QStringList | buttonNames() const override |
- 9 public functions inherited from Qt3DInput::QAbstractPhysicalDevice
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject
Signals
void | activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput) |
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Related Non-Members
typedef | QNodePtr |
typedef | QNodeVector |
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
Qt3DCore::QNodeId | qIdForNode(Qt3DCore::QNode *node) |
Qt3DCore::QNodeIdVector | qIdsForNodes(const T &nodes) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
- 9 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
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.
[override virtual]
int QKeyboardDevice::axisCount() const
Reimplements: QAbstractPhysicalDevice::axisCount() const.
Returns the axis count.
Note: Currently always returns zero.
[override virtual]
int QKeyboardDevice::axisIdentifier(const QString &name) const
Reimplements: QAbstractPhysicalDevice::axisIdentifier(const QString &name) const.
Returns the axisIdentifier matching the name.
[override virtual]
QStringList QKeyboardDevice::axisNames() const
Reimplements: QAbstractPhysicalDevice::axisNames() const.
Returns the axis names.
Note: Currently always returns empty QStringList.
[override virtual]
int QKeyboardDevice::buttonCount() const
Reimplements: QAbstractPhysicalDevice::buttonCount() const.
Returns the button count.
[override virtual]
int QKeyboardDevice::buttonIdentifier(const QString &name) const
Reimplements: QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const.
Returns the buttonIdentifier matching the name.
[override virtual]
QStringList QKeyboardDevice::buttonNames() const
Reimplements: QAbstractPhysicalDevice::buttonNames() const.
Returns the button names.