内容表

上一话题

QAbstractEventDispatcher.TimerInfo

下一话题

QCalendar.YearMonthDay

QStateMachine.WrappedEvent

WrappedEvent 类继承 QEvent and holds a clone of an event associated with a QObject . 更多

Inheritance diagram of PySide2.QtCore.QStateMachine.WrappedEvent

4.6 版新增。

概要

函数

详细描述

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 状态机框架 .

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

另请参阅

QEventTransition

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

PySide2.QtCore.QStateMachine.WrappedEvent(WrappedEvent)

param WrappedEvent

WrappedEvent

param event

QEvent

param object

QObject

构造新 WrappedEvent 对象采用给定 object and event .

WrappedEvent object takes ownership of event .

PySide2.QtCore.QStateMachine.WrappedEvent. event ( )
返回类型

QEvent

Returns a clone of the original event.

PySide2.QtCore.QStateMachine.WrappedEvent. object ( )
返回类型

QObject

Returns the object that the event is associated with.