blob: 1f0fd5a8e011c01c92bf1db0442657dfda196b68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
//! [scxml state machines]
\section1 Using SCXML State Machines
To use QML together with an SCXML state machine, add states and
bind them to the state machine in \l {Connection View} >
\uicontrol Backends, as described in \l {Managing C++ Backend Objects}.
In the \uicontrol States view, you can select \uicontrol Actions >
\uicontrol {Set when Condition} to edit the \c when condition of states
to map QML states to the states of the SCXML state machine. For an example,
see \l {Qt SCXML Traffic Light QML Example (Dynamic)}.
\image qmldesigner-states-when-condition.png
If you add animation to the states, you can
\l{Validating with Target Hardware}{preview}
or \l{Run on many platforms}{run}
the application to test the animation.
//! [scxml state machines]
*/
|