qt_add_statecharts
Converte arquivos do tipo “ .scxml ” em código-fonte C++.
Este comando foi introduzido no Qt 6.1.
O comando está definido no componente Scxml do pacote Qt6. Carregue o pacote com:
find_package(Qt6 REQUIRED COMPONENTS Scxml)Sinopse
qt_add_statecharts(<TARGET> file1.scxml [file2.scxml ...]
[OPTIONS ...])Se os comandos sem versão estiverem desativados, use qt6_add_statecharts() em vez disso. Ele suporta o mesmo conjunto de argumentos que este comando.
Descrição
A macro ` qt_add_statecharts ` instrui o CMake a invocar a ferramenta ` qscxmlc ` para ler os arquivos ` .scxml ` fornecidos e gerar arquivos-fonte e de cabeçalho em C++, que contêm as classes que implementam as máquinas de estado conforme definidas em SCXML.
Para obter mais instruções, opções e exemplos, consulte “Usando o 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.