QStateMachine.WrappedEvent

Note

This class was introduced in Qt 4.6

Synopsis

Functions

Detailed Description

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

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

The PySide.QtCore.QStateMachine::WrappedEvent.object() function returns the object that generated the event. The PySide.QtCore.QStateMachine::WrappedEvent.event() function returns a clone of the original event.

class PySide.QtCore.QStateMachine.WrappedEvent(object, event)
class PySide.QtCore.QStateMachine.WrappedEvent(WrappedEvent)
Parameters:

Constructs a new WrappedEvent object with the given object and event .

The WrappedEvent object takes ownership of event .

PySide.QtCore.QStateMachine.WrappedEvent.event()
Return type:PySide.QtCore.QEvent

Returns a clone of the original event.

PySide.QtCore.QStateMachine.WrappedEvent.object()
Return type:PySide.QtCore.QObject

Returns the object that the event is associated with.