Auf dieser Seite

InputChord QML Type

QML-Frontend für die Klasse Qt3DInput::QInputChord C++. Mehr...

Import Statement: import Qt3D.Input 2.11
In C++: QInputChord
Inherits:

AbstractActionInput

Status: Deprecated

Eigenschaften

Detaillierte Beschreibung

Stellt eine Reihe von QAbstractActionInputs dar, die auf einmal ausgelöst werden müssen.

Das folgende Beispiel zeigt eine Sequenz, die durch Drücken der Tasten G, D und J in dieser Reihenfolge ausgelöst wird, mit einer maximalen Zeit zwischen den Tastendrücken von 1 Sekunde und einer maximalen Gesamteingabezeit von 3 Sekunden.

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 Eigenschaft

chords : list<AbstractActionInput>

Die Liste von AbstractActionInput, die ausgelöst werden muss, um diesen Aggregateingang 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.