Qt3DInput::QButtonAxisInput Class
class Qt3DInput::QButtonAxisInputEine über Tasten gesteuerte Achse Der Achsenwert wird über Tasten und nicht über einen herkömmlichen analogen Eingabebefehl wie beispielsweise einen Joystick gesteuert. Mehr...
| Kopfzeile: | #include <Qt3DInput/QButtonAxisInput> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| In QML: | ButtonAxisInput |
| Erbt von: | Qt3DInput::QAbstractAxisInput |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Eigenschaften
- acceleration : float
- buttons : QList<int>
- deceleration : float
- scale : float
Öffentliche Funktionen
| QButtonAxisInput(Qt3DCore::QNode *parent = nullptr) | |
| float | acceleration() const |
| QList<int> | buttons() const |
| float | deceleration() const |
| float | scale() const |
Öffentliche Slots
| void | setAcceleration(float acceleration) |
| void | setButtons(const QList<int> &buttons) |
| void | setDeceleration(float deceleration) |
| void | setScale(float scale) |
Signale
| void | accelerationChanged(float acceleration) |
| void | buttonsChanged(const QList<int> &buttons) |
| void | decelerationChanged(float deceleration) |
| void | scaleChanged(float scale) |
Eigenschaftsdokumentation
acceleration : float
Legt fest, wie schnell sich der Achsenwert ändert, wenn eine Schaltfläche gedrückt gehalten wird
Zugriffsfunktionen:
| float | acceleration() const |
| void | setAcceleration(float acceleration) |
Benachrichtigungssignal:
| void | accelerationChanged(float acceleration) |
buttons : QList<int>
Legt die Schaltflächen fest, mit denen die Achse gesteuert wird
Zugriffsfunktionen:
| QList<int> | buttons() const |
| void | setButtons(const QList<int> &buttons) |
Benachrichtigungssignal:
| void | buttonsChanged(const QList<int> &buttons) |
deceleration : float
Legt fest, wie schnell der Achsenwert wieder auf den Normalwert zurückkehrt, wenn eine Schaltfläche losgelassen wird
Zugriffsfunktionen:
| float | deceleration() const |
| void | setDeceleration(float deceleration) |
Benachrichtigungssignal:
| void | decelerationChanged(float deceleration) |
scale : float
Legt fest, wie der Ausgabewert der Achse skaliert wird. Standardmäßig wird keine Skalierung angewendet, daher ist der Standardwert 1.
Zugriffsfunktionen:
| float | scale() const |
| void | setScale(float scale) |
Benachrichtigungssignal:
| void | scaleChanged(float scale) |
Dokumentation der Member-Funktionen
[explicit] QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)
Erstellt eine neue `QButtonAxisInput`-Instanz mit ` 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.