En esta página

qt_add_statecharts

Convierte archivos « .scxml » en código fuente de C++.

Este comando se introdujo en Qt 6.1.

El comando se define en el componente « Scxml » del paquete « Qt6 ». Carga el paquete con:

find_package(Qt6 REQUIRED COMPONENTS Scxml)

Sinopsis

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

Si los comandos sin versión están desactivados, utilice « qt6_add_statecharts() » en su lugar. Admite el mismo conjunto de argumentos que este comando.

Descripción

La macro qt_add_statecharts indica a CMake que invoque la herramienta qscxmlc para leer los archivos .scxml proporcionados y generar archivos fuente y de cabecera en C++, que contienen las clases que implementan las máquinas de estados tal y como se definen en SCXML.

Para obtener más instrucciones, opciones y ejemplos, consulte «Uso del compilador Qt SCXML (qscxmlc)».

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