QKeyboardDevice Class

class Qt3DInput::QKeyboardDevice

QKeyboardDevice ist für die Weiterleitung von Tastaturereignissen an angeschlossene QQKeyboardHandler-Objekte zuständig. Mehr...

Kopfzeile: #include <QKeyboardDevice>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
In QML: KeyboardDevice
Vererbt: Qt3DInput::QAbstractPhysicalDevice
Status: Veraltet

Eigenschaften

Öffentliche Funktionen

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

Reimplementierte öffentliche Funktionen

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

Signale

void activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput)

Detaillierte Beschreibung

Dokumentation der Eigenschaften

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

Enthält die aktive QKeyboardHandler des Geräts.

Zugriffsfunktionen:

Qt3DInput::QKeyboardHandler *activeInput() const

Benachrichtigungssignal:

void activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput)

Mitglied Funktion Dokumentation

[explicit] QKeyboardDevice::QKeyboardDevice(Qt3DCore::QNode *parent = nullptr)

Konstruiert eine neue QKeyboardDevice-Instanz mit parent.

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

Reimplements: QAbstractPhysicalDevice::axisCount() const.

Gibt die Anzahl der Achsen zurück.

Hinweis: Gibt derzeit immer Null zurück.

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

Reimplements: QAbstractPhysicalDevice::axisIdentifier(const QString &name) const.

Gibt den axisIdentifier zurück, der mit name übereinstimmt.

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

Reimplements: QAbstractPhysicalDevice::axisNames() const.

Gibt die Achsennamen zurück.

Hinweis: Derzeit wird immer ein leeres QStringList zurückgegeben.

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

Reimplements: QAbstractPhysicalDevice::buttonCount() const.

Gibt die Anzahl der Schaltflächen zurück.

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

Reimplements: QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const.

Gibt den ButtonIdentifier zurück, der der name entspricht.

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

Reimplements: QAbstractPhysicalDevice::buttonNames() const.

Gibt die Namen der Schaltflächen zurück.

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