InputChord QML Type
Qt3DInput::QInputChord C++ 类的 QML 前端。更多
Import Statement: | import Qt3D.Input 2.9 |
In C++: | QInputChord |
Inherits: | |
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 |
© 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.