QAbstractState QML Type

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

Import Statement: import QtQml.StateMachine 1.0
开始支持版本: Qt 5.4
派生类:

FinalState, HistoryState, and State

属性

信号

详细描述

Do not use QAbstractState directly; use State, FinalState or StateMachine instead.

参见 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.

The corresponding handler is onEntered.

参见 active and exited.


exited()

This signal is emitted when the State becomes inactive.

The corresponding handler is onExited.

参见 active and entered.