QButtonAxisInput Class

class Qt3DInput::QButtonAxisInput

Ein Achseneingang, der über Tasten gesteuert wird Der Achsenwert wird über Tasten gesteuert und nicht über einen traditionellen Analogeingang wie einen Joystick. 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
Vererbt: Qt3DInput::QAbstractAxisInput
Status: Veraltet

Eigenschaften

Ö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)

Detaillierte Beschreibung

Dokumentation der Eigenschaften

acceleration : float

Legt die Rate fest, mit der sich der Achsenwert ändert, wenn eine Taste gedrückt wird

Zugriffsfunktionen:

float acceleration() const
void setAcceleration(float acceleration)

Melder-Signal:

void accelerationChanged(float acceleration)

buttons : QList<int>

Legt die Tasten fest, die die Achse steuern

Zugriffsfunktionen:

QList<int> buttons() const
void setButtons(const QList<int> &buttons)

Melder-Signal:

void buttonsChanged(const QList<int> &buttons)

deceleration : float

Legt die Geschwindigkeit fest, mit der der Achsenwert in den Normalzustand zurückkehrt, wenn eine Taste losgelassen wird

Zugriffsfunktionen:

float deceleration() const
void setDeceleration(float deceleration)

Melder-Signal:

void decelerationChanged(float deceleration)

scale : float

Gibt an, wie der Achsenausgabewert skaliert wird. Standardmäßig wird keine Skalierung angewendet, so dass der Standardwert 1 ist.

Zugriffsfunktionen:

float scale() const
void setScale(float scale)

Melder-Signal:

void scaleChanged(float scale)

Member Function Dokumentation

[explicit] QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)

Konstruiert eine neue QButtonAxisInput-Instanz mit parent.

© 2025 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.