Qt3DInput::QAxis Class
class Qt3DInput::QAxisQAxis stocke les objets QAbstractAxisInputs utilisés pour déclencher un événement d'entrée. En savoir plus...
| En-tête : | #include <qaxis.h> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake : | QT += 3dinput |
| En QML : | Axis |
| Hérite de : | Qt3DCore::QNode |
| Statut : | Obsolète |
Cette classe est obsolète. Nous déconseillons fortement de l'utiliser dans du nouveau code.
Propriétés
- value : float
Fonctions publiques
| QAxis(Qt3DCore::QNode *parent = nullptr) | |
| void | addInput(Qt3DInput::QAbstractAxisInput *input) |
| QList<Qt3DInput::QAbstractAxisInput *> | inputs() const |
| void | removeInput(Qt3DInput::QAbstractAxisInput *input) |
| float | value() const |
Signaux
| void | valueChanged(float value) |
Documentation des propriétés
[read-only] value : float
La valeur de l'axe.
Fonctions d'accès :
| float | value() const |
Signal de notification :
| void | valueChanged(float value) |
Documentation des fonctions membres
[explicit] QAxis::QAxis(Qt3DCore::QNode *parent = nullptr)
Crée une nouvelle instance de QAxis dont l'instance parente est parent.
void QAxis::addInput(Qt3DInput::QAbstractAxisInput *input)
QAxis::addInput Ajoute une entrée « input » pour l'axe.
Voir aussi Qt3DInput::QAbstractAxisInput.
QList<Qt3DInput::QAbstractAxisInput *> QAxis::inputs() const
QAxis::inputs
Renvoie un vecteur contenant toutes les entrées ajoutées à l'axe.
void QAxis::removeInput(Qt3DInput::QAbstractAxisInput *input)
QAxis::removeInput
Supprime une entrée « input » de l'axe.
Voir aussi Qt3DInput::QAbstractAxisInput.
© 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.