Qt3DInput::QButtonAxisInput Class
class Qt3DInput::QButtonAxisInputUne entrée d'axe contrôlée par des boutons La valeur de l'axe est contrôlée par des boutons plutôt que par une entrée analogique traditionnelle telle qu'un joystick. Plus d'informations...
| En-tête : | #include <Qt3DInput/QButtonAxisInput> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3dinput)target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake : | QT += 3dinput |
| En QML : | ButtonAxisInput |
| Hérite : | Qt3DInput::QAbstractAxisInput |
| Statut : | Déclassé |
Propriétés
- acceleration : float
- buttons : QList<int>
- deceleration : float
- scale : float
Fonctions publiques
| QButtonAxisInput(Qt3DCore::QNode *parent = nullptr) | |
| float | acceleration() const |
| QList<int> | buttons() const |
| float | deceleration() const |
| float | scale() const |
Emplacements publics
| void | setAcceleration(float acceleration) |
| void | setButtons(const QList<int> &buttons) |
| void | setDeceleration(float deceleration) |
| void | setScale(float scale) |
Signaux
| void | accelerationChanged(float acceleration) |
| void | buttonsChanged(const QList<int> &buttons) |
| void | decelerationChanged(float deceleration) |
| void | scaleChanged(float scale) |
Propriété Documentation
acceleration : float
Spécifie la vitesse à laquelle la valeur de l'axe change lorsqu'un bouton est maintenu enfoncé
Fonctions d'accès :
| float | acceleration() const |
| void | setAcceleration(float acceleration) |
Signal de notification :
| void | accelerationChanged(float acceleration) |
buttons : QList<int>
Spécifie les boutons qui contrôlent l'axe
Fonctions d'accès :
| QList<int> | buttons() const |
| void | setButtons(const QList<int> &buttons) |
Signal de notification :
| void | buttonsChanged(const QList<int> &buttons) |
deceleration : float
Spécifie la vitesse à laquelle la valeur de l'axe revient à la normale lorsqu'un bouton est relâché.
Fonctions d'accès :
| float | deceleration() const |
| void | setDeceleration(float deceleration) |
Signal de notification :
| void | decelerationChanged(float deceleration) |
scale : float
Spécifie comment la valeur de sortie de l'axe est mise à l'échelle. Aucune mise à l'échelle n'étant appliquée par défaut, la valeur par défaut est 1.
Fonctions d'accès :
| float | scale() const |
| void | setScale(float scale) |
Signal de notification :
| void | scaleChanged(float scale) |
Member Function Documentation
[explicit] QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)
Construit une nouvelle instance de QButtonAxisInput avec parent.
© 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.