Qt3DInput::QKeyboardDevice Class
class Qt3DInput::QKeyboardDeviceQKeyboardDevice ist dafür zuständig, Tastaturereignisse an die angehängten QQKeyboardHandler-Objekte weiterzuleiten. Mehr...
| Header: | #include <qkeyboarddevice.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| In QML: | KeyboardDevice |
| Erbt von: | Qt3DInput::QAbstractPhysicalDevice |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Eigenschaften
- activeInput : Qt3DInput::QKeyboardHandler*
Öffentliche Funktionen
| QKeyboardDevice(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DInput::QKeyboardHandler * | activeInput() const |
Neu implementierte ö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) |
Dokumentation zu den Eigenschaften
[read-only] activeInput : Qt3DInput::QKeyboardHandler*
Enthält den aktiven QKeyboardHandler des Geräts.
Zugriffsfunktionen:
| Qt3DInput::QKeyboardHandler * | activeInput() const |
Notifier-Signal:
| void | activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput) |
Dokumentation der Mitgliedsfunktionen
[explicit] QKeyboardDevice::QKeyboardDevice(Qt3DCore::QNode *parent = nullptr)
Erstellt eine neue Instanz von `QKeyboardDevice` mit ` parent`.
[override virtual] int QKeyboardDevice::axisCount() const
Implementiert neu: ` QAbstractPhysicalDevice::axisCount()` const.
Gibt die Anzahl der Achsen zurück.
Hinweis: Gibtderzeit immer Null zurück.
[override virtual] int QKeyboardDevice::axisIdentifier(const QString &name) const
Implementiert: ` QAbstractPhysicalDevice::axisIdentifier(const QString &name) const`.
Gibt den axisIdentifier zurück, der dem name entspricht.
[override virtual] QStringList QKeyboardDevice::axisNames() const
Implementiert neu: ` QAbstractPhysicalDevice::axisNames()` const.
Gibt die Achsenbezeichnungen zurück.
Hinweis: Gibtderzeit immer ein leeres ` QStringList` zurück.
[override virtual] int QKeyboardDevice::buttonCount() const
Implementiert: ` QAbstractPhysicalDevice::buttonCount()` const.
Gibt die Anzahl der Schaltflächen zurück.
[override virtual] int QKeyboardDevice::buttonIdentifier(const QString &name) const
Implementiert: ` QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const`.
Gibt den buttonIdentifier zurück, der dem name entspricht.
[override virtual] QStringList QKeyboardDevice::buttonNames() const
Implementiert neu: ` QAbstractPhysicalDevice::buttonNames()` const.
Gibt die Namen der Schaltflächen zurück.
© 2026 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.