WrappedEvent Class

( QStateMachine::WrappedEvent )

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

头: #include <WrappedEvent>
qmake: QT += core
Since: Qt 4.6
继承: QEvent

公共函数

~WrappedEvent ()
QEvent * event () const
QObject * object () const

额外继承成员

详细描述

The WrappedEvent 类继承 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 属于 状态机框架 .

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

另请参阅 QEventTransition .

成员函数文档编制

WrappedEvent:: ~WrappedEvent ()

销毁此 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.