QStateMachine::WrappedEvent Class

class QStateMachine::WrappedEvent

WrappedEvent 类继承于QEvent ,并保存与QObject 相关事件的克隆 ... 更多...

公共函数

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

详细说明

包装事件由QStateMachine 生成,以响应 Qt XML 事件。QEventTransition 类提供了与此类事件相关的过渡。QStateMachine::WrappedEventQt State Machine 概述的一部分。

object() 函数返回生成事件的对象。event() 函数返回原始事件的克隆。

另请参阅 QEventTransition

成员函数文档

[virtual noexcept] WrappedEvent::~WrappedEvent()

摧毁WrappedEvent.

QEvent *WrappedEvent::event() const

返回原始事件的克隆。

QObject *WrappedEvent::object() const

返回事件关联的对象。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.