En esta página

Qt3DInput::QAction Class

class Qt3DInput::QAction

Vincula un conjunto de QAbstractActionInput que desencadenan el mismo evento. Más...

Cabecera: #include <QAction>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
En QML: Action
Hereda: Qt3DCore::QNode
Status: Obsoleto

Propiedades

Funciones públicas

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

Señales

void activeChanged(bool isActive)

Descripción detallada

Documentación de propiedades

[read-only] active : bool

Indica true si la acción está activa.

Tenga en cuenta que esta propiedad no se actualiza cuando la acción está desactivada.

Funciones de acceso:

bool isActive() const

Señal del notificador:

void activeChanged(bool isActive)

Documentación de la función miembro

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

Construye una nueva instancia de QAction con el padre parent.

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

Añada QAbstractActionInput input a la lista de entradas que pueden desencadenar esta acción.

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

Devuelve la lista de entradas que pueden desencadenar esta acción.

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

Elimine QAbstractActionInput input de la lista de entradas que pueden activar esta acción.

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