The QAbstractTransition type is the base type of transitions between QAbstractState 对象。 更多...
import 语句: | import QtQml.StateMachine 6.7 |
继承者: |
The QAbstractTransition type is the abstract base type of transitions between states ( QAbstractState 对象) 的 StateMachine 。QAbstractTransition 属于 Qt State Machine QML API
The sourceState() property has the source of the transition. The targetState and targetStates properties return the target(s) of the transition.
The triggered () 信号发射当过渡被触发时。
Do not use QAbstractTransition directly; use SignalTransition or TimeoutTransition 代替。
另请参阅 SignalTransition and TimeoutTransition .
sourceState
:
bool
|
The source state (parent) of this transition.
targetState : QAbstractState |
The target state of this transition.
If a transition has no target state, the transition may still be triggered, but this will not cause the state machine's configuration to change (i.e. the current state will not be exited and re-entered).
targetStates : list < QAbstractState > |
The target states of this transition.
If multiple states are specified, they all must be descendants of the same parallel group state.
triggered () |
This signal is emitted when the transition has been triggered.
注意:
相应处理程序是
onTriggered
.