InputChord QML Type
Interface QML para a classe C++ ` Qt3DInput::QInputChord `. Mais...
| Import Statement: | import Qt3D.Input 2.12 |
| In C++: | QInputChord |
| Inherits: | |
| Status: | Deprecated |
Esse tipo está obsoleto. Recomendamos enfaticamente que não seja usado em códigos novos.
Propriedades
Descrição detalhada
Representa um conjunto de QAbstractActionInput que deve ser acionado de uma só vez.
O exemplo a seguir mostra uma sequência que será acionada ao pressionar as teclas G, D e J nessa ordem, com um intervalo máximo de 1 segundo entre as pressões e um tempo máximo total de entrada de 3 segundos.
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]
}
]
}Documentação das propriedades
chords : list<AbstractActionInput>
A lista de AbstractActionInput que deve ser acionada para ativar essa entrada agregada.
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.