本页内容

Qt State Machine C++ Classes

Qt State Machine 模块提供了用于创建和执行状态图的类。更多内容...

类

QAbstractState

QStateMachine 状态的基类

QAbstractTransition

QAbstractState 对象之间转换的基类

QEventTransition

针对 Qt 事件的 QObject 特定转换

QFinalState

终态

QHistoryState

返回先前处于活动状态的子状态的方法

QKeyEventTransition

针对键盘事件的转换

QMouseEventTransition

鼠标事件的转换

QSignalTransition

基于 Qt 信号的转换

QState

QStateMachine 的通用状态

QStateMachine

分层有限状态机

QStateMachine::SignalEvent

表示一个 Qt 信号事件

QStateMachine::WrappedEvent

继承自 QEvent,并持有与某个 QObject 关联的事件的克隆

详细描述

该 Qt State Machine 页面包含有关如何使用该模块的信息。

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