Qt3DInput::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 : 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 : bool
アクションが有効な場合、true を保持します。
なお、このプロパティはアクションが無効になっている場合は更新されません。
アクセス関数:
| bool | isActive() const |
通知シグナル:
| void | activeChanged(bool isActive) |
メンバ関数のドキュメント
[explicit] QAction::QAction(Qt3DCore::QNode *parent = nullptr)
親がparent である新しいQActionインスタンスを作成します。
void QAction::addInput(Qt3DInput::QAbstractActionInput *input)
このアクションをトリガーできる入力のリストに、QAbstractActionInputinput を追加します。
QList<Qt3DInput::QAbstractActionInput *> QAction::inputs() const
このアクションをトリガーできる入力のリストを返します。
void QAction::removeInput(Qt3DInput::QAbstractActionInput *input)
このアクションをトリガーできる入力のリストから、QAbstractActionInputinput を削除します。
© 2026 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.