In questa pagina

InputChord QML Type

Frontend QML per la classe C++ ` Qt3DInput::QInputChord `. Maggiori informazioni...

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

AbstractActionInput

Status: Deprecated

Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.

Proprietà

Descrizione dettagliata

Rappresenta un insieme di oggetti QAbstractActionInput che devono essere attivati contemporaneamente.

L'esempio seguente mostra una sequenza che verrà attivata premendo i tasti G, D e J in quest'ordine, con un intervallo massimo di 1 secondo tra una pressione e l'altra e un tempo massimo complessivo di input pari a 3 secondi.

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]
       }
       ]
 }

Documentazione delle proprietà

chords : list<AbstractActionInput>

L'elenco degli AbstractActionInput che devono essere attivati per attivare questo input aggregato.

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.