WrappedEvent Class

(QStateMachine::WrappedEvent)

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

Header: #include <WrappedEvent>
qmake: QT += core
Since: Qt 4.6
Inherits: QEvent

Public Functions

virtual ~WrappedEvent()
QEvent *event() const
QObject *object() const
  • 6 public functions inherited from QEvent

Additional Inherited Members

  • 1 property inherited from QEvent
  • 2 static public members inherited from QEvent
  • 2 protected variables inherited from QEvent

Detailed Description

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

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 The State Machine Framework.

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

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.

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