Qt3DInput::QKeyboardDevice Class
class Qt3DInput::QKeyboardDeviceQKeyboardDevice est chargé de distribuer les événements clavier aux objets QQKeyboardHandler attachés. Plus d'informations...
| En-tête : | #include <QKeyboardDevice> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3dinput)target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake : | QT += 3dinput |
| En QML : | KeyboardDevice |
| Hérite : | Qt3DInput::QAbstractPhysicalDevice |
| Statut : | Déclassé |
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 sur les propriétés
[read-only] activeInput : Qt3DInput::QKeyboardHandler*
Contient le site actif QKeyboardHandler de l'appareil.
Fonctions d'accès :
| Qt3DInput::QKeyboardHandler * | activeInput() const |
Signal du notificateur :
| void | activeInputChanged(Qt3DInput::QKeyboardHandler *activeInput) |
Member Function Documentation
[explicit] QKeyboardDevice::QKeyboardDevice(Qt3DCore::QNode *parent = nullptr)
Construit une nouvelle instance de QKeyboardDevice avec parent.
[override virtual] int QKeyboardDevice::axisCount() const
Réimplémente : QAbstractPhysicalDevice::axisCount() const.
Renvoie le nombre d'axes.
Note : Actuellement, cette fonction renvoie 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 à name.
[override virtual] QStringList QKeyboardDevice::axisNames() const
Réimplémente : QAbstractPhysicalDevice::axisNames() const.
Renvoie les noms des axes.
Remarque : actuellement, le système renvoie toujours une adresse 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émente : 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.