QAction Class
class Qt3DInput::QActionLinks a set of QAbstractActionInput that trigger the same event. \since
5.7. More...
Header: | #include <QAction> |
Instantiated By: | Action |
Inherits: | Qt3DCore::QNode |
Properties
- active : const bool
Public Functions
QAction(Qt3DCore::QNode *parent = nullptr) | |
virtual | ~QAction() |
void | addInput(QAbstractActionInput *input) |
QList<QAbstractActionInput *> | inputs() const |
bool | isActive() const |
void | removeInput(QAbstractActionInput *input) |
Signals
void | activeChanged(bool isActive) |
Detailed Description
\inmodule
Qt3DInput \inherits
Qt3DCore::QNode
Property Documentation
[read-only]
active : const bool
Holds true
if the action is active.
Note this property is not updated when the action is disabled.
Access functions:
bool | isActive() const |
Notifier signal:
void | activeChanged(bool isActive) |
Member Function Documentation
[explicit]
QAction::QAction(Qt3DCore::QNode *parent = nullptr)
Constructs a new QAction instance with parent parent.
[virtual noexcept]
QAction::~QAction()
\internal
void QAction::addInput(QAbstractActionInput *input)
Append QAbstractActionInput input to the list of inputs that can trigger this action.
QList<QAbstractActionInput *> QAction::inputs() const
Returns the list of inputs that can trigger this action.
void QAction::removeInput(QAbstractActionInput *input)
Remove QAbstractActionInput input to the list of inputs that can trigger this action.