Qt3DInput::QAction Class
class Qt3DInput::QActionCollega un insieme di QAbstractActionInput che attivano lo stesso evento. Per saperne di più...
| Intestazione: | #include <QAction> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| In QML: | Action |
| Eredita da: | Qt3DCore::QNode |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
- active : bool
Funzioni pubbliche
| QAction(Qt3DCore::QNode *parent = nullptr) | |
| void | addInput(Qt3DInput::QAbstractActionInput *input) |
| QList<Qt3DInput::QAbstractActionInput *> | inputs() const |
| bool | isActive() const |
| void | removeInput(Qt3DInput::QAbstractActionInput *input) |
Segnali
| void | activeChanged(bool isActive) |
Documentazione sulle proprietà
[read-only] active : bool
Contiene il valore " true " se l'azione è attiva.
Si noti che questa proprietà non viene aggiornata quando l'azione è disabilitata.
Funzioni di accesso:
| bool | isActive() const |
Segnale di notifica:
| void | activeChanged(bool isActive) |
Documentazione delle funzioni membro
[explicit] QAction::QAction(Qt3DCore::QNode *parent = nullptr)
Crea una nuova istanza di QAction con il parent e padre.
void QAction::addInput(Qt3DInput::QAbstractActionInput *input)
Aggiungi `QAbstractActionInput input ` all'elenco degli input in grado di attivare questa azione.
QList<Qt3DInput::QAbstractActionInput *> QAction::inputs() const
Restituisce l'elenco degli input che possono attivare questa azione.
void QAction::removeInput(Qt3DInput::QAbstractActionInput *input)
Rimuovere QAbstractActionInput input dall'elenco degli input in grado di attivare questa azione.
© 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.