QAbstractState QML Type
QAbstractState 类型是StateMachine 的基本状态类型 ... 更多...
| Import Statement: | import QtQml.StateMachine 6.11 |
| Inherited By: | FinalState, HistoryState, State, and StateMachine |
属性
- active : bool
信号
详细说明
请勿直接使用 QAbstractState;请使用 State、FinalState 或StateMachine 。
另请参阅 StateMachine 和State 。
属性文档
active : bool [read-only]
该状态的活动属性。一个状态在entered() 和exited() 信号之间处于激活状态。该属性为只读属性。
信号文档
entered()
当状态变为活动状态时发出该信号。
注: 相应的处理程序是onEntered 。
exited()
当状态变为非活动状态时发出该信号。
注: 相应的处理程序是onExited 。
© 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.