QAction Class
class Qt3DInput::QActionVerknüpft eine Gruppe von QAbstractActionInput, die das gleiche Ereignis auslösen. Mehr...
Kopfzeile: | #include <QAction> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake: | QT += 3dinput |
In QML: | Action |
Vererbt: | Qt3DCore::QNode |
Status: | Veraltet |
Eigenschaften
- active : const bool
Öffentliche Funktionen
QAction(Qt3DCore::QNode *parent = nullptr) | |
void | addInput(Qt3DInput::QAbstractActionInput *input) |
QList<Qt3DInput::QAbstractActionInput *> | inputs() const |
bool | isActive() const |
void | removeInput(Qt3DInput::QAbstractActionInput *input) |
Signale
void | activeChanged(bool isActive) |
Dokumentation der Eigenschaften
[read-only]
active : const bool
Enthält true
, wenn die Aktion aktiv ist.
Beachten Sie, dass diese Eigenschaft nicht aktualisiert wird, wenn die Aktion deaktiviert ist.
Zugriffsfunktionen:
bool | isActive() const |
Benachrichtigungssignal:
void | activeChanged(bool isActive) |
Member Function Dokumentation
[explicit]
QAction::QAction(Qt3DCore::QNode *parent = nullptr)
Konstruiert eine neue QAction-Instanz mit übergeordnetem parent.
void QAction::addInput(Qt3DInput::QAbstractActionInput *input)
Fügen Sie QAbstractActionInput input an die Liste der Eingänge an, die diese Aktion auslösen können.
QList<Qt3DInput::QAbstractActionInput *> QAction::inputs() const
Gibt die Liste der Eingaben zurück, die diese Aktion auslösen können.
void QAction::removeInput(Qt3DInput::QAbstractActionInput *input)
Entfernen Sie QAbstractActionInput input aus der Liste der Eingänge, die diese Aktion auslösen können.
© 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.