Qt3DInput::QButtonAxisInput Class
class Qt3DInput::QButtonAxisInputUna entrada de eje controlada por botones El valor del eje se controla mediante botones en lugar de una entrada analógica tradicional como un joystick. Más...
| Cabecera: | #include <Qt3DInput/QButtonAxisInput> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput)target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| En QML: | ButtonAxisInput |
| Hereda: | Qt3DInput::QAbstractAxisInput |
| Status: | Obsoleto |
Propiedades
- acceleration : float
- buttons : QList<int>
- deceleration : float
- scale : float
Funciones públicas
| QButtonAxisInput(Qt3DCore::QNode *parent = nullptr) | |
| float | acceleration() const |
| QList<int> | buttons() const |
| float | deceleration() const |
| float | scale() const |
Ranuras públicas
| void | setAcceleration(float acceleration) |
| void | setButtons(const QList<int> &buttons) |
| void | setDeceleration(float deceleration) |
| void | setScale(float scale) |
Señales
| void | accelerationChanged(float acceleration) |
| void | buttonsChanged(const QList<int> &buttons) |
| void | decelerationChanged(float deceleration) |
| void | scaleChanged(float scale) |
Documentación de propiedades
acceleration : float
Especifica la velocidad a la que cambia el valor del eje cuando se mantiene pulsado un botón
Funciones de acceso:
| float | acceleration() const |
| void | setAcceleration(float acceleration) |
Señal de aviso:
| void | accelerationChanged(float acceleration) |
buttons : QList<int>
Especifica los botones que controlan el eje
Funciones de acceso:
| QList<int> | buttons() const |
| void | setButtons(const QList<int> &buttons) |
Señal de aviso:
| void | buttonsChanged(const QList<int> &buttons) |
deceleration : float
Especifica la velocidad a la que el valor del eje vuelve a la normalidad cuando se suelta un botón
Funciones de acceso:
| float | deceleration() const |
| void | setDeceleration(float deceleration) |
Señal de aviso:
| void | decelerationChanged(float deceleration) |
scale : float
Especifica cómo se escala el valor de salida del eje. Por defecto no se aplica ningún escalado, por lo que el valor por defecto es 1.
Funciones de acceso:
| float | scale() const |
| void | setScale(float scale) |
Señal del notificador:
| void | scaleChanged(float scale) |
Documentación de la función miembro
[explicit] QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)
Construye una nueva instancia de QButtonAxisInput con 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.