Home

QtHistoryState Class Reference
[QtCore module]

The QtHistoryState class provides 'pause and resume' control flow in a state graph. More...

 #include <QtHistoryState>

Inherits QtAbstractState.

Public Functions

Additional Inherited Members


Detailed Description

The QtHistoryState class provides 'pause and resume' control flow in a state graph.

A history state is a pseudo-state that represents the child state that the parent state was in the last time the parent state was exited. A transition with a history state as its target is in fact a transition to one of the other child states of the parent state. QtHistoryState is part of The State Machine Framework.

Use QtAbstractStateGroup::addHistoryState() to construct a history state.


Member Function Documentation

QtHistoryState::~QtHistoryState ()

Destroys this history state.

QtAbstractState * QtHistoryState::defaultState () const

Returns this history state's default state. The default state indicates the state to transition to if the parent state has never been entered before.

See also setDefaultState().

void QtHistoryState::setDefaultState ( QtAbstractState * state )

Sets this history state's default state to be the given state.

See also defaultState().


Copyright © 2009 Nokia Trademarks
Qt Solutions