WrappedEvent

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

Inheritance diagram of PySide2.QtCore.QStateMachine.WrappedEvent

New in version 4.6.

Synopsis

Functions

Detailed Description

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

class PySide2.QtCore.QStateMachine.WrappedEvent(object, event)

PySide2.QtCore.QStateMachine.WrappedEvent(WrappedEvent)

param WrappedEvent:

PySide2.QtCore.QStateMachine.WrappedEvent

param event:

PySide2.QtCore.QEvent

param object:

PySide2.QtCore.QObject

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

The WrappedEvent object takes ownership of event .

PySide2.QtCore.QStateMachine.WrappedEvent.event()
Return type:

PySide2.QtCore.QEvent

Returns a clone of the original event.

PySide2.QtCore.QStateMachine.WrappedEvent.object()
Return type:

PySide2.QtCore.QObject

Returns the object that the event is associated with.