Auf dieser Seite

Qt3DInput::QAxis Class

class Qt3DInput::QAxis

QAxis speichert QAbstractAxisInputs, die zum Auslösen eines Eingabeereignisses verwendet werden. Mehr...

Header: #include <qaxis.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
In QML: Axis
Erbt von: Qt3DCore::QNode
Status: Veraltet

Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.

Eigenschaften

Öffentliche Funktionen

QAxis(Qt3DCore::QNode *parent = nullptr)
void addInput(Qt3DInput::QAbstractAxisInput *input)
QList<Qt3DInput::QAbstractAxisInput *> inputs() const
void removeInput(Qt3DInput::QAbstractAxisInput *input)
float value() const

Signale

void valueChanged(float value)

Detaillierte Beschreibung

Erstellt eine neue QAxis-Instanz mit „ parent “.

Eigenschaftsdokumentation

[read-only] value : float

Der Wert der Achse.

Zugriffsfunktionen:

float value() const

Benachrichtigungssignal:

void valueChanged(float value)

Dokumentation der Mitgliedsfunktionen

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

Erstellt eine neue QAxis-Instanz, deren übergeordnete Instanz „ parent “ ist.

void QAxis::addInput(Qt3DInput::QAbstractAxisInput *input)

QAxis::addInput Fügt einen „ input “ für die Achse hinzu.

Siehe auch „ Qt3DInput::QAbstractAxisInput “.

QList<Qt3DInput::QAbstractAxisInput *> QAxis::inputs() const

QAxis::inputs

Gibt einen Vektor aller zur Achse hinzugefügten Eingaben zurück.

void QAxis::removeInput(Qt3DInput::QAbstractAxisInput *input)

QAxis::removeInput

Entfernt eine Eingabe ( input ) von der Achse.

Siehe auch „ 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.