InputSequence QML Type
Qt3DInput::QInputSequence C++ 类的 QML 前端。更多内容...
| Import Statement: | import Qt3D.Input 2.12 |
| In C++: | QInputSequence |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- buttonInterval : int
- sequences : list<AbstractActionInput>
- timeout : int
信号
详细说明
表示一组必须依次触发的 QAbstractActionInput 对象。
以下示例展示了一个和弦,按下 A 和 S 键时会触发该和弦,两个按键之间的间隔容差为 10 毫秒。
InputChord {
tolerance: 10
inputs: [
ActionInput {
sourceDevice: keyboardSourceDevice
keys: [Qt.Key_A]
},
ActionInput {
sourceDevice: keyboardSourceDevice
keys: [Qt.Key_S]
}
]
}属性文档
buttonInterval : int
输入序列中连续两个 QAbstractActionInput 之间的最大时间间隔(以毫秒为单位)。
sequences : list<AbstractActionInput>
timeout : int
输入序列中所有 QAbstractActionInput 必须在该时间(以毫秒为单位)内被触发。
信号文档
buttonIntervalChanged()
当输入序列的buttonInterval 发生变化时,会触发此信号。
相应的处理程序是onButtonIntervalChanged
注意: 相应的处理程序 为onButtonIntervalChanged 。
timeoutChanged()
当输入序列的超时时间发生变化时,会触发此信号。
相应的处理程序是onTimeoutChanged
注意: 相应的处理程序 是onTimeoutChanged 。
© 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.