TimeoutTransition QML Type
TimeoutTransition 유형은 타이머를 기반으로 하는 전환을 제공합니다. 더 보기...
| Import Statement: | import QtQml.StateMachine 6.12 |
| Inherits: |
속성
- timeout : int
상세 설명
Timer 이 타입은 ` SignalTransition `와 결합하여 더 복잡한 타임아웃 기반 전환을 구현할 수 있습니다.
TimeoutTransition은 Qt State Machine QML API의 일부입니다 .
사용 예
import QtQuick
import QtQml.StateMachine as DSM
Rectangle {
Button {
anchors.fill: parent
id: button
text: "Finish state"
enabled: !stateMachine.running
onClicked: stateMachine.running = true
DSM.StateMachine {
id: stateMachine
initialState: state
running: true
DSM.State {
id: state
DSM.TimeoutTransition {
targetState: finalState
timeout: 1000
}
}
DSM.FinalState {
id: finalState
}
}
}
}StateMachine, SignalTransition, FinalState 및 HistoryState도 참조하십시오 .
속성 설명
timeout : int
타임아웃 간격(밀리초 단위).
© 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.