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

WrappedEvent Class

The WrappedEvent class inherits QEvent and holds a clone of an event associated with a QObject.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

WrappedEvent Class

  • Header: WrappedEvent

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS StateMachine)

    target_link_libraries(mytarget PRIVATE Qt6::StateMachine)

  • qmake: QT += statemachine

  • Inherits: QEvent

  • Group: WrappedEvent is part of statemachine

Detailed Description

A wrapped event is generated by a QStateMachine in response to a Qt event. The QEventTransition class provides a transition associated with a such an event. QStateMachine::WrappedEvent is part of Qt State Machine Overview.

The object() function returns the object that generated the event. The event() function returns a clone of the original event.

See Also

See also QEventTransition

Member Function Documentation

 

[virtual] WrappedEvent::~WrappedEvent()

Destroys this WrappedEvent.

QEvent *WrappedEvent::event() const

Returns a clone of the original event.

QObject *WrappedEvent::object() const

Returns the object that the event is associated with.

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