qt_add_statecharts

此命令在 Qt 6.1 中引入。

说明

qt6_add_statecharts 宏指示 CMake 调用 qscxmlc 工具读取所提供的 .scxml 文件并生成 C++ 源文件和头文件,其中包含实现 SCXML 中定义的状态机的类。

简要说明

qt6_add_statecharts(<TARGET> file1.scxml [file2.scxml ...]
                    [OPTIONS ...])

有关进一步的说明、选项和示例,请参阅 Qt SCXML 编译器 (qscxmlc) 的使用

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