QKeyboardDevice Class
(Qt3DInput::QKeyboardDevice)QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects. 更多...
头文件: | #include <QKeyboardDevice> |
qmake: | QT += 3dinput |
开始支持版本: | Qt 5.5 |
Instantiated By: | KeyboardDevice |
基类: | Qt3DInput::QAbstractPhysicalDevice |
属性
- activeInput : Qt3DInput::QKeyboardHandler * const
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QKeyboardDevice(QNode *parent = nullptr) | |
QKeyboardHandler * | activeInput() const |
重新实现的公有函数
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 个公有函数继承自 Qt3DInput::QAbstractPhysicalDevice
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
信号
void | activeInputChanged(QKeyboardHandler *activeInput) |
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
其他继承的成员
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 1 个受保护的函数继承自 Qt3DInput::QAbstractPhysicalDevice
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.
属性
activeInput : Qt3DInput::QKeyboardHandler * const
Holds the active QKeyboardHandler of the device.
访问函数:
QKeyboardHandler * | activeInput() const |
Notifier signal:
void | activeInputChanged(QKeyboardHandler *activeInput) |
成员函数
QKeyboardDevice::QKeyboardDevice(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.