The QAbstractState class is the base class of states of a QStateMachine. More...
#include <QAbstractState>
Inherits: QObject.
Inherited by: QFinalState, QHistoryState, and QState.
This class was introduced in Qt 4.6.
~QAbstractState () | |
QStateMachine * | machine () const |
QState * | parentState () const |
void | entered () |
void | exited () |
QAbstractState ( QState * parent = 0 ) | |
virtual void | onEntry ( QEvent * event ) = 0 |
virtual void | onExit ( QEvent * event ) = 0 |
virtual bool | event ( QEvent * e ) |
The QAbstractState class is the base class of states of a QStateMachine.
The QAbstractState class is the abstract base class of states that are part of a QStateMachine. It defines the interface that all state objects have in common. QAbstractState is part of The State Machine Framework.
The entered() signal is emitted when the state has been entered. The exited() signal is emitted when the state has been exited.
The parentState() function returns the state's parent state. The machine() function returns the state machine that the state is part of.
The onEntry() function is called when the state is entered; reimplement this function to perform custom processing when the state is entered.
The onExit() function is called when the state is exited; reimplement this function to perform custom processing when the state is exited.
Constructs a new state with the given parent state.
Destroys this state.
This signal is emitted when the state has been entered (after onEntry() has been called).
Reimplemented from QObject::event().
This signal is emitted when the state has been exited (after onExit() has been called).
Returns the state machine that this state is part of, or 0 if the state is not part of a state machine.
This function is called when the state is entered. The given event is 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 event is what caused the state to be exited. Reimplement this function to perform custom processing when the state is exited.
Returns this state's parent state, or 0 if the state has no parent state.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.