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