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
  • 1 static public member 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support