Qt3DInput::QAbstractPhysicalDeviceProxy Class
class Qt3DInput::QAbstractPhysicalDeviceProxyQt3DInput::QAbstractPhysicalDeviceProxy agit comme un proxy pour un périphérique Qt3DInput::QQAbstractPhysicalDevice réel. Plus...
| En-tête : | #include <QAbstractPhysicalDeviceProxy> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3dinput)target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake : | QT += 3dinput |
| Hérite : | Qt3DInput::QAbstractPhysicalDevice |
| Statut : | Déclassé |
Fonctions publiques
| QString | deviceName() const |
| Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus | status() const |
Signaux
| void | statusChanged(Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus status) |
Description détaillée
Qt3DInput::QAbstractPhysicalDeviceProxy peut être utilisé pour faciliter l'exposition d'un dispositif physique aux utilisateurs. Il n'est pas nécessaire d'inspecter les axes et les boutons en se basant sur leur nom.
Elle est typiquement utilisée par le biais d'une sous-classe permettant de définir le nom de l'appareil et de définir des enums pour les différents axes et boutons de l'appareil ciblé.
Au moment de l'exécution, la propriété status sera mise à jour pour refléter si un dispositif réel correspondant au nom du dispositif a pu être créé.
© 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.