IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

InputChord QML Type

QML frontend for the Qt3DInput::QInputChord C++ class.

This type was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

InputChord QML Type

  • Import Statement: import Qt3D.Input 2.4

  • Since:: Qt 5.7

  • Instantiates:: QInputChord

Detailed Description

Represents a set of QAbstractActionInput's that must be triggerd at once.

The following example shows an sequence that will be triggered by pressing the G, D, and J keys in that order with a maximum time between key presses of 1 second and overall maximum input time of 3 seconds.

 
Sélectionnez
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]
       }
       ]
 }

Property Documentation

 

chords : list<AbstractActionInput>

The list of AbstractActionInput that must be triggered to trigger this aggregate input.

timeout : int

 

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+