Auf dieser Seite

Qt3DInput::QAction Class

class Qt3DInput::QAction

Verknüpft eine Reihe von „ QAbstractActionInput “, die dasselbe Ereignis auslösen. Mehr...

Überschrift: #include <QAction>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
In QML: Action
Erbt von: Qt3DCore::QNode
Status: Veraltet

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

Eigenschaften

Ö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)

Ausführliche Beschreibung

Dokumentation der Eigenschaften

[read-only] active : 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)

Dokumentation der Mitgliedsfunktionen

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

Erstellt eine neue QAction-Instanz mit dem übergeordneten Element „ parent “.

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

Fügen Sie „QAbstractActionInput input “ zur Liste der Eingaben hinzu, 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 Eingaben, die diese Aktion auslösen können.

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