QAbstractState QML Type

The QAbstractState type is the base type of States of a StateMachine . 更多...

import 語句: import QtQml.StateMachine 1.12
Since: Qt 5.4
繼承者: FinalState , HistoryState ,和 State

特性

信號

詳細描述

不使用 QAbstractState directly; use State, FinalState or StateMachine 代替。

另請參閱 StateMachine and State .

特性文檔編製

[read-only] active : bool

The active property of this state. A state is active between entered() and exited() signals. This property is readonly.

另請參閱 entered and exited .


信號文檔編製

entered ()

This signal is emitted when the State becomes active.

相應處理程序是 onEntered .

另請參閱 active and exited .

exited ()

This signal is emitted when the State becomes inactive.

相應處理程序是 onExited .

另請參閱 active and entered .