WrappedEvent Class

(QStateMachine::WrappedEvent)

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

头文件: #include <WrappedEvent>
qmake: QT += core
开始支持版本: Qt 4.6
基类: QEvent

公有函数

~WrappedEvent()
QEvent *event() const
QObject *object() const
  • 6 个公有函数继承自 QEvent

其他继承的成员

  • 1 个属性继承自 QEvent
  • 1 个静态公有成员继承自 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. The QEventTransition class provides a transition associated with a such an event. QStateMachine::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.

参见 QEventTransition.

成员函数

WrappedEvent::~WrappedEvent()

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