Sur cette page

QStateMachine::WrappedEvent Class

class QStateMachine::WrappedEvent

La classe `WrappedEvent` hérite de ` QEvent ` et contient un clone d'un événement associé à un ` QObject`. En savoir plus...

Fonctions publiques

virtual ~WrappedEvent()
QEvent *event() const
QObject *object() const

Description détaillée

Un événement encapsulé est généré par un ` QStateMachine ` en réponse à un événement Qt. La classe ` QEventTransition ` fournit une transition associée à un tel événement. ` QStateMachine::WrappedEvent ` fait partie de la présentation dQt State Machine .

La fonction object() renvoie l'objet qui a généré l'événement. La fonction event() renvoie un clone de l'événement d'origine.

Voir également QEventTransition.

Documentation des fonctions membres

[virtual noexcept] WrappedEvent::~WrappedEvent()

Supprime cette page : WrappedEvent.

QEvent *WrappedEvent::event() const

Renvoie un clone de l'événement d'origine.

QObject *WrappedEvent::object() const

Renvoie l'objet auquel l'événement est associé.

© 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.