在本页

QAbstractState QML Type

QAbstractState 类型是StateMachine 的基本状态类型 ... 更多...

Import Statement: import QtQml.StateMachine 6.8
Inherited By:

FinalState, HistoryState, and State

属性

信号

详细说明

请勿直接使用 QAbstractState;请使用 State、FinalState 或StateMachine 。

另请参阅 StateMachine 和State 。

属性文档

active : bool [read-only]

该状态的活动属性。一个状态在entered() 和exited() 信号之间处于激活状态。该属性只读。

另请参阅 entered 和exited 。


信号文档

entered()

当状态变为活动状态时会发出该信号。

注: 相应的处理程序是onEntered 。

另请参阅 active 和exited 。


exited()

状态变为非活动状态时发出此信号。

注: 相应的处理程序是onExited 。

另请参阅 active 和entered 。


© 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.