TimeoutTransition QML Type
타임아웃 전환 유형은 타이머에 기반한 전환을 제공합니다. 더 보기...
Import Statement: | import QtQml.StateMachine 6.8 |
Inherits: |
속성
- timeout : int
상세 설명
Timer 유형을 SignalTransition 와 결합하여 보다 복잡한 타임아웃 기반 전환을 구현할 수 있습니다.
타임아웃 트랜지션은 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 |
밀리초 단위의 타임아웃 간격입니다.
© 2025 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.