QKeyboardDevice Class

( Qt3DInput::QKeyboardDevice )

QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects. 更多...

头: #include <QKeyboardDevice>
qmake: QT += 3dinput
Since: Qt 5.5
实例化: KeyboardDevice
继承: Qt3DInput::QAbstractPhysicalDevice

特性

公共函数

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

信号

void activeInputChanged (QKeyboardHandler * activeInput )

额外继承成员

详细描述

QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects.

特性文档编制

activeInput : Qt3DInput::QKeyboardHandler * const

Holds the active QKeyboardHandler 为设备。

访问函数:

QKeyboardHandler * activeInput () const

通知程序信号:

void activeInputChanged (QKeyboardHandler * activeInput )

成员函数文档编制

QKeyboardDevice:: QKeyboardDevice ( QNode * parent = nullptr)

构造新的 QKeyboardDevice 实例与 parent .

[虚拟] int QKeyboardDevice:: axisCount () const

重实现自 QAbstractPhysicalDevice::axisCount ().

Returns the axis count.

注意: Currently always returns zero.

[虚拟] int QKeyboardDevice:: axisIdentifier (const QString & name ) const

重实现自 QAbstractPhysicalDevice::axisIdentifier ().

Returns the axisIdentifier matching the name .

[虚拟] QStringList QKeyboardDevice:: axisNames () const

重实现自 QAbstractPhysicalDevice::axisNames ().

Returns the axis names.

注意: Currently always returns empty QStringList .

[虚拟] int QKeyboardDevice:: buttonCount () const

重实现自 QAbstractPhysicalDevice::buttonCount ().

Returns the button count.

[虚拟] int QKeyboardDevice:: buttonIdentifier (const QString & name ) const

重实现自 QAbstractPhysicalDevice::buttonIdentifier ().

Returns the buttonIdentifier matching the name .

[虚拟] QStringList QKeyboardDevice:: buttonNames () const

重实现自 QAbstractPhysicalDevice::buttonNames ().

Returns the button names.