이 페이지에서

qt_add_statecharts

.scxml 파일을 C++ 소스 코드로 변환합니다.

이 명령은 Qt 6.1에 도입되었습니다.

이 명령은 Qt6 패키지의 Scxml 컴포넌트에 정의되어 있습니다. 패키지를 로드합니다:

find_package(Qt6 REQUIRED COMPONENTS Scxml)

시놉시스

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

버전 없는 명령이 비활성화되어 있으면 qt6_add_statecharts() 을 대신 사용합니다. 이 명령과 동일한 인수 집합을 지원합니다.

설명

qt_add_statecharts 매크로는 CMake가 qscxmlc 도구를 호출하여 제공된 .scxml 파일을 읽고 SCXML에 정의된 대로 상태 머신을 구현하는 클래스가 포함된 C++ 소스 및 헤더 파일을 생성하도록 지시합니다.

자세한 지침, 옵션 및 예제는 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.