本页内容

Qt SCXML C++ Classes

提供用于从 SCXML 文件创建和使用状态机的类。更多...

命名空间

QScxmlExecutableContent

包含用于解析状态机中可执行内容的各类类型

类

QScxmlCompiler

SCXML 文件编译器

QScxmlCompiler::Loader

SCXML 编译器的 URI 解析器和资源加载器

QScxmlCppDataModel

Qt SCXML 状态机的C++数据模型

QScxmlDataModel

Qt SCXML 状态机的数据模型基类

QScxmlDataModel::ForeachLoopBody

表示在 SCXML foreach 循环的每次迭代中要执行的函数

QScxmlDynamicScxmlServiceFactory

根据运行时加载的文档创建 SCXML 服务实例

QScxmlError

描述Qt SCXML 状态机在解析SCXML文件时返回的错误

QScxmlEvent

Qt SCXML 状态机的事件

QScxmlExecutableContent::AssignmentInfo

AssingmentInfo 类表示数据赋值

QScxmlExecutableContent::EvaluatorInfo

表示一个可执行内容的单元

QScxmlExecutableContent::ForeachInfo

表示一个 foreach 结构

QScxmlExecutableContent::InvokeInfo

表示一次服务调用

QScxmlExecutableContent::ParameterInfo

表示服务调用的参数

QScxmlInvokableService

从状态机调用的服务的基类

QScxmlInvokableServiceFactory

创建可调用的服务实例

QScxmlNullDataModel

Qt SCXML 状态机的空数据模型

QScxmlStateMachine

由 SCXML 文件创建的状态机的接口

QScxmlStaticScxmlServiceFactory

根据预编译文档创建 SCXML 服务实例

QScxmlTableData

由编译后的状态机使用

详细说明

若要通过 cmake 使用该模块,请使用find_package() 命令在Qt6 包中定位所需的模块组件:

find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)

若要配置该模块以便使用 qmake 进行构建,请在项目的 .pro 文件中将该模块作为QT 变量的值添加:

QT += scxml

有关更多信息,请参阅《实例化状态机》。

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