QAbstractState QML Type
QAbstractState 类型是StateMachine 中 States 的基类。更多内容...
| Import Statement: | import QtQml.StateMachine 6.12 |
| 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.