QAbstractTransition QML Type
QAbstractTransition 类型是QAbstractState 对象之间转换的基本类型。更多
Import Statement: | import QtQml.StateMachine 6.9 |
Inherited By: |
属性
- sourceState : bool
- targetState : QAbstractState
- targetStates : list<QAbstractState>
信号
详细描述
QAbstractTransition 类型是StateMachine 状态(QAbstractState 对象)间转换的抽象基本类型。QAbstractTransition 是Qt State Machine QML API的一部分。
sourceState() 属性有过渡的源。targetState 和targetStates 属性返回过渡的目标。
当过渡被触发时,会发出triggered() 信号。
请勿直接使用 QAbstractTransition;请使用SignalTransition 或TimeoutTransition 。
另请参阅 SignalTransition 和TimeoutTransition 。
属性文档
sourceState : bool |
此过渡的源状态(父状态)。
targetState : QAbstractState |
此过渡的目标状态。
如果一个过渡没有目标状态,则该过渡仍可能被触发,但这不会导致状态机的配置改变(即当前状态不会被退出或重新进入)。
targetStates : list<QAbstractState> |
此转换的目标状态。
如果指定了多个状态,它们必须都是同一并行组状态的后代。
信号文档
triggered() |
此信号在触发转换时发出。
注: 相应的处理程序是onTriggered
。
© 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.