本页内容

QStateMachine::WrappedEvent Class

class QStateMachine::WrappedEvent

WrappedEvent 类继承自QEvent ,并保存了一个与QObject 关联的事件的克隆。更多...

公共函数

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

详细说明

包装事件由QStateMachine 在响应Qt事件时生成。QEventTransition 类提供与该事件关联的过渡效果。QStateMachine::WrappedEvent 是Qt State Machine 概述的一部分。

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

另请参阅 QEventTransition 。

成员函数文档

[virtual noexcept] WrappedEvent::~WrappedEvent()

删除此链接:WrappedEvent 。

QEvent *WrappedEvent::event() const

返回原始事件的克隆。

QObject *WrappedEvent::object() const

返回与该事件关联的对象。

© 2026 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.