QAction Class
(Qt3DInput::QAction)Links a set of QAbstractActionInput that trigger the same event. 更多...
头文件: | #include <QAction> |
qmake: | QT += 3dinput |
开始支持版本: | Qt 5.7 |
Instantiated By: | Action |
基类: | Qt3DCore::QNode |
属性
- active : const bool
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QAction(Qt3DCore::QNode *parent = nullptr) | |
void | addInput(QAbstractActionInput *input) |
QVector<QAbstractActionInput *> | inputs() const |
bool | isActive() const |
void | removeInput(QAbstractActionInput *input) |
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
信号
void | activeChanged(bool isActive) |
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
其他继承的成员
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
Links a set of QAbstractActionInput that trigger the same event.
属性
active : const bool
Holds true
if the action is active.
Note this property is not updated when the action is disabled.
访问函数:
bool | isActive() const |
Notifier signal:
void | activeChanged(bool isActive) |
成员函数
QAction::QAction(Qt3DCore::QNode *parent = nullptr)
Constructs a new QAction instance with parent parent.
void QAction::addInput(QAbstractActionInput *input)
Append QAbstractActionInput input to the list of inputs that can trigger this action.
QVector<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.