Qt3DInput::QInputSettings Class
class Qt3DInput::QInputSettingsLa classe QInputSettings contient le pointeur sur un objet source d'événement d'entrée. Plus d'informations...
| En-tête : | #include <QInputSettings> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3dinput)target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake : | QT += 3dinput |
| En QML : | InputSettings |
| Hérite : | Qt3DCore::QComponent |
| Statut : | Déclassé |
Propriétés
- eventSource : QObject*
Fonctions publiques
| QObject * | eventSource() const |
Emplacements publics
| void | setEventSource(QObject *eventSource) |
Signaux
| void | eventSourceChanged(QObject *) |
Description détaillée
Le composant QInputSettings doit être défini comme un composant de l'entité racine de la scène. Il stocke un pointeur sur l'objet qui sert de source d'événements d'entrée à gérer par les différentes classes d'entrée. Par exemple, une instance QWindow peut être une source d'événements.
Voir également QMouseDevice et QKeyboardDevice.
Documentation sur les propriétés
eventSource : QObject*
Contient la source d'événement actuelle. Une source d'événements est un objet capable de recevoir divers événements d'entrée, tels que des événements liés à la souris ou au clavier. Il s'agit généralement d'une instance QWindow.
Fonctions d'accès :
| QObject * | eventSource() const |
| void | setEventSource(QObject *eventSource) |
Signal de notification :
| void | eventSourceChanged(QObject *) |
© 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.