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

更多信息,请参阅实例化状态机

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