QAbstractTransition QML Type
QAbstractTransition 型は、QAbstractState オブジェクト間の遷移の基底型です。詳細...
| Import Statement: | import QtQml.StateMachine 6.12 |
| 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 [read-only]
この遷移の元となる状態(親)。
targetState : QAbstractState
この遷移の遷移先状態。
遷移に遷移先状態がない場合でも、その遷移はトリガーされる可能性がありますが、それによってステートマシンの構成が変更されることはありません(つまり、現在の状態から抜け出したり、再びその状態に入ったりすることはありません)。
targetStates : list<QAbstractState>
この遷移の遷移先状態。
複数の状態が指定された場合、それらはすべて同じ並列グループ状態の子孫でなければなりません。
シグナルのドキュメント
triggered()
このシグナルは、遷移がトリガーされたときに発信されます。
注: 対応するハンドラは onTriggered です。
© 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.