Qt3DInput::QKeyboardDevice Class
class Qt3DInput::QKeyboardDeviceQKeyboardDevice est chargé de transmettre les événements clavier aux objets QQKeyboardHandler associés. En savoir plus...
| En-tête : | #include <qkeyboarddevice.h> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake : | QT += 3dinput |
| En QML : | KeyboardDevice |
| Hérite de : | Qt3DInput::QAbstractPhysicalDevice |
| Statut : | Obsolète |
Cette classe est obsolète. Nous déconseillons fortement de l'utiliser dans du nouveau code.
Propriétés
- activeInput : Qt3DInput::QKeyboardHandler*
Fonctions publiques
| QKeyboardDevice(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DInput::QKeyboardHandler * | activeInput() const |
Fonctions publiques réimplémentées
| 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 |
Signaux
| void | activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput) |
Documentation des propriétés
[read-only] activeInput : Qt3DInput::QKeyboardHandler*
Contient le QKeyboardHandler actif de l'appareil.
Fonctions d'accès :
| Qt3DInput::QKeyboardHandler * | activeInput() const |
Signal de notification :
| void | activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput) |
Documentation des fonctions membres
[explicit] QKeyboardDevice::QKeyboardDevice(Qt3DCore::QNode *parent = nullptr)
Crée une nouvelle instance de `QKeyboardDevice` à l'aide de ` parent`.
[override virtual] int QKeyboardDevice::axisCount() const
Réimplémente : ` QAbstractPhysicalDevice::axisCount()` const.
Renvoie le nombre d'axes.
Remarque : renvoieactuellement toujours zéro.
[override virtual] int QKeyboardDevice::axisIdentifier(const QString &name) const
Réimplémente : QAbstractPhysicalDevice::axisIdentifier(const QString &name) const.
Renvoie l'identifiant d'axe correspondant à l'name.
[override virtual] QStringList QKeyboardDevice::axisNames() const
Réimplémente : QAbstractPhysicalDevice::axisNames() const.
Renvoie les noms des axes.
Remarque : renvoieactuellement toujours un tableau vide QStringList.
[override virtual] int QKeyboardDevice::buttonCount() const
Réimplémente : QAbstractPhysicalDevice::buttonCount() const.
Renvoie le nombre de boutons.
[override virtual] int QKeyboardDevice::buttonIdentifier(const QString &name) const
Réimplémentation de : QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const.
Renvoie l’identifiant de bouton correspondant à ` name`.
[override virtual] QStringList QKeyboardDevice::buttonNames() const
Réimplémente : QAbstractPhysicalDevice::buttonNames() const.
Renvoie les noms des boutons.
© 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.