QAction Class
class Qt3DInput::QAction同じイベントをトリガーするQAbstractActionInput のセットをリンクします。さらに...
ヘッダー | #include <QAction> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake | QT += 3dinput |
QML で | Action |
を継承しています: | Qt3DCore::QNode |
ステータス | 非推奨 |
プロパティ
- active : const bool
パブリック機能
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 で構築します。
void QAction::addInput(Qt3DInput::QAbstractActionInput *input)
このアクションをトリガーできる入力のリストにQAbstractActionInput input を追加する。
QList<Qt3DInput::QAbstractActionInput *> QAction::inputs() const
このアクションのトリガーとなる入力のリストを返します。
void QAction::removeInput(Qt3DInput::QAbstractActionInput *input)
QAbstractActionInput input を、このアクションをトリガーできる入力リストに加える。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.