blob: 160419a55866f9fd3b3918ef1624f338b48cf8fa (
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) 2014 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
//! [document]
import QtQuick
import QtQml.StateMachine as DSM
Rectangle {
DSM.StateMachine {
id: stateMachine
initialState: state
running: true
DSM.State {
id: state
DSM.TimeoutTransition {
targetState: finalState
timeout: 200
}
}
DSM.FinalState {
id: finalState
}
onFinished: console.log("state finished")
}
}
//! [document]
|