Qt State Machine QML Types

要将 QML 类型导入到您的应用程序中,请在 .qml 文件中使用以下导入语句:

import QtQml.StateMachine

有关详细信息,请参阅Qt State Machine QML 指南。

FinalState

提供最终状态

HistoryState

Type 提供了一种返回先前处于活动状态的子状态的方法

QAbstractState

该类型是 StateMachine 中 States 的基类

QAbstractTransition

该类型是 QAbstractState 对象之间转换的基础类型

QSignalTransition

该类型提供基于 Qt 信号的转换

SignalTransition

该类型提供基于 Qt 信号的转换

State

为 StateMachine 提供一个通用状态

StateMachine

提供了一个分层有限状态机

TimeoutTransition

Type 提供基于定时器的状态转换

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