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

QKeyEventTransition Class

The QKeyEventTransition class provides a transition for key events.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QKeyEventTransition Class

  • Header: QKeyEventTransition

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS StateMachine)

    target_link_libraries(mytarget PRIVATE Qt6::StateMachine)

  • qmake: QT += statemachine

  • Inherits: QEventTransition

  • Inherited By:

  • Group: QKeyEventTransition is part of statemachine

Detailed Description

Property Documentation

 

[bindable] key : int

This property supports QProperty bindings.

This property holds the key that this key event transition is associated with

[bindable] modifierMask : Qt::KeyboardModifiers

This property supports QProperty bindings.

This property holds the keyboard modifier mask that this key event transition checks for

Member Function Documentation

 

QKeyEventTransition::QKeyEventTransition(QState *sourceState = nullptr)

Constructs a new key event transition with the given sourceState.

QKeyEventTransition::QKeyEventTransition(QObject *object, QEvent::Type type, int key, QState *sourceState = nullptr)

Constructs a new key event transition for events of the given type for the given object, with the given key and sourceState.

[virtual] QKeyEventTransition::~QKeyEventTransition()

Destroys this key event transition.

[override virtual protected] bool QKeyEventTransition::eventTest(QEvent *event)

int QKeyEventTransition::key() const

Returns the key that this key event transition checks for.

Getter function for property key.

See Also

See also setKey()

Qt::KeyboardModifiers QKeyEventTransition::modifierMask() const

Returns the keyboard modifier mask that this key event transition checks for.

Getter function for property modifierMask.

See Also

See also setModifierMask()

[override virtual protected] void QKeyEventTransition::onTransition(QEvent *event)

void QKeyEventTransition::setKey(int key)

Sets the key that this key event transition will check for.

Setter function for property key.

See Also

See also key()

void QKeyEventTransition::setModifierMask(Qt::KeyboardModifiers modifierMask)

Sets the keyboard modifier mask that this key event transition will check for to modifierMask.

Setter function for property modifierMask.

See Also

See also modifierMask()

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