QStateMachine.WrappedEvent Class Reference

[ QtCore module]

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

继承 QEvent .

方法


详细描述

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. QEventTransition class provides a transition associated with a such an event. QStateMachine.WrappedEvent is part of 状态机框架 .

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


方法文档编制

QEvent WrappedEvent.event ( self )

Returns a clone of the original event.

QObject WrappedEvent.object ( self )

Returns the object that the event is associated with.