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é à QObject. Plus...

Fonctions publiques

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

Description détaillée

Un événement enveloppé 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 Qt State Machine Vue d'ensemble.

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

Voir également QEventTransition.

Documentation des fonctions membres

[virtual noexcept] WrappedEvent::~WrappedEvent()

Détruit cette WrappedEvent.

QEvent *WrappedEvent::event() const

Renvoie un clone de l'événement original.

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.