En esta página

InputChord QML Type

Interfaz QML para la clase C++ ` Qt3DInput::QInputChord `. Más información...

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

AbstractActionInput

Status: Deprecated

Este tipo está obsoleto. Recomendamos encarecidamente no utilizarlo en código nuevo.

Propiedades

Descripción detallada

Representa un conjunto de objetos QAbstractActionInput que deben activarse a la vez.

El siguiente ejemplo muestra una secuencia que se activará al pulsar las teclas G, D y J en ese orden, con un tiempo máximo de 1 segundo entre cada pulsación y un tiempo 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]
       }
       ]
 }

Documentación de las propiedades

chords : list<AbstractActionInput>

La lista de «AbstractActionInput» que deben activarse para que se active esta 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.