Links a set of QAbstractActionInput 觸發相同事件。 更多...
| 頭: |
#include <QAction>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
|
| qmake: |
QT += 3dinput
|
| 在 QML: | 動作 |
| 繼承: | Qt3DCore::QNode |
| 狀態: | 棄用 |
| QAction (Qt3DCore::QNode * parent = nullptr) | |
| void | addInput (Qt3DInput::QAbstractActionInput * input ) |
| QList<Qt3DInput::QAbstractActionInput *> | inputs () const |
| bool | isActive () const |
| void | removeInput (Qt3DInput::QAbstractActionInput * input ) |
| void | activeChanged (bool isActive ) |
[read-only]
active
: const
bool
保持
true
若動作是活動的。
注意:不更新此特性當動作被禁用時。
訪問函數:
| bool | isActive () const |
通知程序信號:
| void | activeChanged (bool isActive ) |
[explicit]
QAction::
QAction
(
Qt3DCore::QNode
*
parent
= nullptr)
構造新的 QAction 實例采用父級 parent .
追加 QAbstractActionInput input 到可以觸發此動作的輸入列錶。
返迴可以觸發此動作的輸入列錶。
移除 QAbstractActionInput input 到可以觸發此動作的輸入列錶。