QKeyboardDevice Class

class Qt3DInput::QKeyboardDevice

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

Header: #include <QKeyboardDevice>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
Instantiated By: KeyboardDevice
Inherits: Qt3DInput::QAbstractPhysicalDevice

Properties

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

Signals

void activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput)

Detailed Description

Property Documentation

[read-only] 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

[explicit] 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.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.