Qt3DInput::QAction Class
class Qt3DInput::QActionVincula un conjunto de « QAbstractActionInput » que activan el mismo evento. Más información...
| Encabezado: | #include <QAction> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| En QML: | Action |
| Heredado de: | Qt3DCore::QNode |
| Estado: | Obsoleto |
Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.
Propiedades
- active : bool
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) |
Documentación de propiedades
[read-only] active : bool
Contiene el valor « true » si la acción está activa.
Ten en cuenta que esta propiedad no se actualiza cuando la acción está desactivada.
Funciones de acceso:
| bool | isActive() const |
Señal de notificación:
| void | activeChanged(bool isActive) |
Documentación de funciones de miembro
[explicit] QAction::QAction(Qt3DCore::QNode *parent = nullptr)
Crea una nueva instancia de QAction con el padre parent.
void QAction::addInput(Qt3DInput::QAbstractActionInput *input)
Añade `QAbstractActionInput input ` a la lista de entradas que pueden activar esta acción.
QList<Qt3DInput::QAbstractActionInput *> QAction::inputs() const
Devuelve la lista de entradas que pueden activar esta acción.
void QAction::removeInput(Qt3DInput::QAbstractActionInput *input)
Elimina «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.