IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QAxis Class

QAxis stores QAbstractAxisInputs used to trigger an input event.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAxis Class

  • Header: QAxis

  • Since: Qt 5.7

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dinput)

    target_link_libraries(mytarget PRIVATE Qt6::3dinput)

  • qmake: QT += 3dinput

  • Inherited By:

  • Instantiated By: qml-qt3d-input-axis.xml

  • Inherits: Qt3DCore::QNode

Detailed Description

Constructs a new QAxis instance with parent.

Property Documentation

 

[read-only] value : const float

The value of the axis.

Access functions:

  • float value() const

Notifier signal:

  • void valueChanged(float value)

Member Function Documentation

 

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

Constructs a new QAxis instance with parent parent.

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

QAxis::addInput Adds an input for the axis.

See Also

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

QAxis::inputs

Returns vector of all inputs added to the axis.

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

QAxis::removeInput

Removes an input from the axis.

See Also

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+