Qt SCXML 模塊提供狀態機創建功能從 SCXML 文件。這包括動態創建狀態機 (加載 SCXML 文件、實例化狀態及過渡) 和生成擁有實現狀態機的類的 C++ 文件。它還包含支持數據模型和可執行內容的功能。
要導入 QML 類型到應用程序中,使用以下 import 語句在 .qml 文件中:
import QtScxml
To link against the module:
Using cmake:
find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
Using qmake:
QT += scxml
Changes to Qt SCXML lists important changes in the module API and functionality that were done for the Qt 6 series of Qt.
The Qt SCXML module is available under commercial licenses from Qt 公司 . In addition, it is available under free software licenses: The GNU LGPL (次一般公共許可) 第 3 版 ,或 GNU GPL (一般公共許可) 第 2 版 。見 Qt 許可 進一步瞭解細節。