QKeyboardDevice Class

class Qt3DInput ::QKeyboardDevice

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

头: #include <QKeyboardDevice>
CMake: find_package(Qt6 COMPONENTS 3dinput REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
Since: Qt 5.5
实例化: KeyboardDevice
继承: Qt3DInput::QAbstractPhysicalDevice

特性

公共函数

  QKeyboardDevice (Qt3DCore::QNode * parent = nullptr)
Qt3DInput::QKeyboardHandler * activeInput () const

重实现公共函数

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

信号

void activeInputChanged (Qt3DInput::QKeyboardHandler * activeInput )

详细描述

特性文档编制

[read-only] activeInput : Qt3DInput::QKeyboardHandler * const

Holds the active QKeyboardHandler 为设备。

访问函数:

Qt3DInput::QKeyboardHandler * activeInput () const

通知程序信号:

void activeInputChanged (Qt3DInput::QKeyboardHandler * activeInput )

成员函数文档编制

QKeyboardDevice:: QKeyboardDevice ( Qt3DCore::QNode * parent = nullptr)

Constructs a new QKeyboardDevice instance with parent .

[override virtual] int QKeyboardDevice:: axisCount () const

重实现: QAbstractPhysicalDevice::axisCount () const.

Returns the axis count.

注意: Currently always returns zero.

[override virtual] int QKeyboardDevice:: axisIdentifier (const QString & name ) const

重实现: QAbstractPhysicalDevice::axisIdentifier (const QString &name) const.

Returns the axisIdentifier matching the name .

[override virtual] QStringList QKeyboardDevice:: axisNames () const

重实现: QAbstractPhysicalDevice::axisNames () const.

Returns the axis names.

注意: Currently always returns empty QStringList .

[override virtual] int QKeyboardDevice:: buttonCount () const

重实现: QAbstractPhysicalDevice::buttonCount () const.

Returns the button count.

[override virtual] int QKeyboardDevice:: buttonIdentifier (const QString & name ) const

重实现: QAbstractPhysicalDevice::buttonIdentifier (const QString &name) const.

Returns the buttonIdentifier matching the name .

[override virtual] QStringList QKeyboardDevice:: buttonNames () const

重实现: QAbstractPhysicalDevice::buttonNames () const.

Returns the button names.