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