QAction 類

( Qt3DInput::QAction )

Links a set of QAbstractActionInput 觸發相同事件。 更多...

頭: #include < QAction >
qmake: QT += 3dinput
Since: Qt 5.7
實例化: 動作
繼承: 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 觸發相同事件。

特性文檔編製

active : const bool

保持 true 若動作是活動的。

注意:不更新此特性當動作被禁用時。

訪問函數:

bool isActive () const

通知程序信號:

void activeChanged (bool isActive )

成員函數文檔編製

QAction:: QAction ( Qt3DCore::QNode * parent = nullptr)

構造新的 QAction instance with parent parent .

void QAction:: addInput ( QAbstractActionInput * input )

追加 QAbstractActionInput input 到可以觸發此動作的輸入列錶。

QVector < QAbstractActionInput *> QAction:: inputs () const

返迴可以觸發此動作的輸入列錶。

void QAction:: removeInput ( QAbstractActionInput * input )

移除 QAbstractActionInput input 到可以觸發此動作的輸入列錶。