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

QInputSequence Class

QInputSequence represents a set of QAbstractActionInput's that must be triggerd one after the other.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QInputSequence Class

  • Header: QInputSequence

  • Since: Qt 5.7

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dinput)

    target_link_libraries(mytarget PRIVATE Qt6::3dinput)

  • qmake: QT += 3dinput

  • Inherited By:

  • Instantiated By: qml-qt3d-input-inputsequence.xml

  • Inherits: Qt3DInput::QAbstractActionInput

Detailed Description

 

Property Documentation

 

buttonInterval : int

The maximum time in between consecutive QAbstractActionInput's in the input sequence. The time is in milliseconds.

Access functions:

  • int buttonInterval() const

  • void setButtonInterval(int buttonInterval)

Notifier signal:

  • void buttonIntervalChanged(int buttonInterval)

timeout : int

The time in which all QAbstractActionInput's in the input sequence must triggered within. The time is in milliseconds.

Access functions:

  • int timeout() const

  • void setTimeout(int timeout)

Notifier signal:

  • void timeoutChanged(int timeout)

Member Function Documentation

 

[explicit] QInputSequence::QInputSequence(Qt3DCore::QNode *parent = nullptr)

Constructs a new QInputSequence with parent parent.

void QInputSequence::addSequence(Qt3DInput::QAbstractActionInput *input)

Append the QAbstractActionInput input to the end of this QInputSequence's sequence vector.

See Also

See also removeSequence

int QInputSequence::buttonInterval() const

Returns the maximum time in between consecutive QAbstractActionInput's in the input sequence. The time is in milliseconds

Getter function for property buttonInterval.

See Also

See also setButtonInterval()

void QInputSequence::removeSequence(Qt3DInput::QAbstractActionInput *input)

Remove the QAbstractActionInput input from this QInputSequence's sequence vector.

See Also

See also addSequence

QList<Qt3DInput::QAbstractActionInput *> QInputSequence::sequences() const

Returns the QInputSequence's sequence vector.

int QInputSequence::timeout() const

Returns the time in which all QAbstractActionInput's in the input sequence must triggered within. The time is in milliseconds

Getter function for property timeout.

See Also

See also setTimeout()

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