<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qtscxml-index.qdoc --> <title>Qt SCXML 5.12.6</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td >Qt SCXML</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.12.6 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#getting-started">Getting Started</a></li> <li class="level1"><a href="#articles-and-guides">Articles and Guides</a></li> <li class="level1"><a href="#examples">Examples</a></li> <li class="level1"><a href="#reference">Reference</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">Qt SCXML</h1> <span class="subtitle"></span> <!-- $$$qtscxml-index.html-description --> <div class="descr"> <a name="details"></a> <p>The Qt SCXML module provides functionality to create state machines from <a href="http://www.w3.org/TR/scxml/">SCXML</a> files. This includes both dynamically creating state machines (loading the SCXML file and instantiating states and transitions) and generating a C++ file that has a class implementing the state machine. It also contains functionality to support data models and executable content.</p> <a name="getting-started"></a> <h2 id="getting-started">Getting Started</h2> <p>To include the definitions of the module's classes, use the following directive:</p> <pre class="cpp"> <span class="preprocessor">#include <QScxmlStateMachine></span> </pre> <p>To import the QML types into your application, use the following import statement in your .qml file:</p> <pre class="cpp"> import <span class="type"><a href="qtscxml-module.html">QtScxml</a></span> <span class="number">5.8</span> </pre> <p>To link against the module, add this line to your qmake .pro file:</p> <pre class="cpp"> QT <span class="operator">+</span><span class="operator">=</span> scxml </pre> <a name="articles-and-guides"></a> <h2 id="articles-and-guides">Articles and Guides</h2> <ul> <li><a href="qtscxml-overview.html">Qt SCXML Overview</a></li> <li><a href="qtscxml-instantiating-state-machines.html">Instantiating State Machines</a></li> <li><a href="qtscxml-scxml-compliance.html">SCXML Compliance</a></li> <li><a href="qscxmlc.html">Using the Qt SCXML Compiler (qscxmlc)</a></li> </ul> <a name="examples"></a> <h2 id="examples">Examples</h2> <ul> <li><a href="examples-qtscxml.html">Qt SCXML Examples</a></li> </ul> <a name="reference"></a> <h2 id="reference">Reference</h2> <ul> <li><a href="qtscxml-module.html">C++ Classes and Namespaces</a></li> <li><a href="qtscxml-qmlmodule.html">QML Types</a></li> </ul> </div> <!-- @@@qtscxml-index.html --> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> 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. </p> </div> </body> </html>