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

属性

公有函数

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

信号

void activeChanged(bool isActive)

其他继承的成员

详细描述

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.