New in version 4.6.
QAbstractStateclass is the abstract base class of states that are part of a
QStateMachine. It defines the interface that all state objects have in common.
QAbstractStateis part of The State Machine Framework .
entered()signal is emitted when the state has been entered. The
exited()signal is emitted when the state has been exited.
- param parent
Constructs a new state with the given
- Return type
Returns whether this state is active.
- Return type
Returns the state machine that this state is part of, or
Noneif the state is not part of a state machine.
This function is called when the state is entered. The given
eventis what caused the state to be entered. Reimplement this function to perform custom processing when the state is entered.
This function is called when the state is exited. The given
eventis what caused the state to be exited. Reimplement this function to perform custom processing when the state is exited.
© 2020 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.