In questa pagina

qt_add_statecharts

Converte i file " .scxml " in codice sorgente C++.

Questo comando è stato introdotto in Qt 6.1.

Il comando è definito nel componente Scxml del pacchetto Qt6. Caricare il pacchetto con:

find_package(Qt6 REQUIRED COMPONENTS Scxml)

Sintassi

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

Se i comandi senza versione sono disabilitati, utilizzare invece qt6_add_statecharts(). Supporta lo stesso insieme di argomenti di questo comando.

Descrizione

La macro qt_add_statecharts indica a CMake di richiamare lo strumento qscxmlc per leggere i file .scxml forniti e generare file sorgente e di intestazione C++, contenenti le classi che implementano le macchine a stati definite in SCXML.

Per ulteriori istruzioni, opzioni ed esempi, consultare la sezione Utilizzo del compilatore 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.