InputChord QML Type
QML-Frontend für die C++-Klasse „ Qt3DInput::QInputChord “. Mehr...
| Import Statement: | import Qt3D.Input 2.12 |
| In C++: | QInputChord |
| Inherits: | |
| Status: | Deprecated |
Dieser Typ ist veraltet. Wir raten dringend davon ab, ihn in neuem Code zu verwenden.
Eigenschaften
Ausführliche Beschreibung
Stellt eine Menge von `QAbstractActionInput`-Objekten dar, die gleichzeitig ausgelöst werden müssen.
Das folgende Beispiel zeigt eine Abfolge, die durch das Drücken der Tasten G, D und J in dieser Reihenfolge ausgelöst wird, wobei die maximale Zeit zwischen den Tastenanschlägen 1 Sekunde und die maximale Gesamteingabezeit 3 Sekunden beträgt.
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]
}
]
}Dokumentation der Eigenschaften
chords : list<AbstractActionInput>
Die Liste der „AbstractActionInput“-Elemente, die ausgelöst werden müssen, um diesen aggregierten Input auszulösen.
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.