このページでは

InputChord QML Type

Qt3DInput::QInputChord のC++クラス用のQMLフロントエンド。詳細...

Import Statement: import Qt3D.Input 2.12
In C++: QInputChord
Inherits:

AbstractActionInput

Status: Deprecated

この型は非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

詳細な説明

一度にトリガーされる必要がある一連の QAbstractActionInput を表します。

以下の例は、G、D、Jキーをその順序で押すことでトリガーされるシーケンスを示しています。キー押下の最大間隔は1秒、入力時間の合計は最大3秒です。

InputChord {
    interval: 1000
    timeout: 3000
    chords: [
       ActionInput {
            sourceDevice: keyboardSourceDevice
            keys: [Qt.Key_G]
       },
       ActionInput {
            sourceDevice: keyboardSourceDevice
            keys: [Qt.Key_D]
       },
       ActionInput {
            sourceDevice: keyboardSourceDevice
            keys: [Qt.Key_J]
       }
       ]
 }

プロパティのドキュメント

chords : list<AbstractActionInput>

この集約入力をトリガーするために、トリガーする必要がある AbstractActionInput のリスト。

timeout : int

© 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.