Sur cette page

Qt3DInput::QAction Class

class Qt3DInput::QAction

Relie un ensemble de sites QAbstractActionInput qui déclenchent le même événement. Plus...

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

Propriétés

Fonctions publiques

QAction(Qt3DCore::QNode *parent = nullptr)
void addInput(Qt3DInput::QAbstractActionInput *input)
QList<Qt3DInput::QAbstractActionInput *> inputs() const
bool isActive() const
void removeInput(Qt3DInput::QAbstractActionInput *input)

Signaux

void activeChanged(bool isActive)

Description détaillée

Documentation sur les propriétés

[read-only] active : bool

Tient true si l'action est active.

Notez que cette propriété n'est pas mise à jour lorsque l'action est désactivée.

Fonctions d'accès :

bool isActive() const

Signal du notificateur :

void activeChanged(bool isActive)

Member Function Documentation

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

Construit une nouvelle instance de QAction avec le parent parent.

void QAction::addInput(Qt3DInput::QAbstractActionInput *input)

Ajouter QAbstractActionInput input à la liste des entrées qui peuvent déclencher cette action.

QList<Qt3DInput::QAbstractActionInput *> QAction::inputs() const

Renvoie la liste des entrées qui peuvent déclencher cette action.

void QAction::removeInput(Qt3DInput::QAbstractActionInput *input)

Supprimer QAbstractActionInput input de la liste des entrées pouvant déclencher cette action.

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