QKeyboardDevice Class


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


Public Functions

QKeyboardDevice(QNode *parent = nullptr)
QKeyboardHandler *activeInput() const

Reimplemented Public Functions

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)

Additional Inherited Members

Detailed Description

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

Property Documentation

activeInput : Qt3DInput::QKeyboardHandler * const

Holds the active QKeyboardHandler of the device.

Access functions:

QKeyboardHandler *activeInput() const

Notifier signal:

void activeInputChanged(QKeyboardHandler *activeInput)

Member Function Documentation

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.

© 2017 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.