Sur cette page

Qt3DInput::QAxis Class

class Qt3DInput::QAxis

QAxis stocke les QAbstractAxisInputs utilisés pour déclencher un événement d'entrée. Plus d'informations...

En-tête : #include <QAxis>
CMake : find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake : QT += 3dinput
En QML : Axis
Hérite : Qt3DCore::QNode
Statut : Déclassé

Propriétés

Fonctions publiques

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

Signaux

void valueChanged(float value)

Description détaillée

Construit une nouvelle instance de QAxis avec parent.

Documentation sur les propriétés

[read-only] value : float

La valeur de l'axe.

Fonctions d'accès :

float value() const

Signal de notification :

void valueChanged(float value)

Member Function Documentation

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

Construit une nouvelle instance de QAxis avec le parent parent.

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

QAxis::addInput Ajoute un input pour l'axe.

Voir également Qt3DInput::QAbstractAxisInput.

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

QAxis::inputs

Renvoie un vecteur de toutes les entrées ajoutées à l'axe.

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

QAxis::removeInput

Supprime une adresse input de l'axe.

Voir également 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.