|  | Home

# QtHistoryState Class Reference
[QtCore module]

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

     #include <QtHistoryState>

Inherits QtAbstractState.

- List of all members, including inherited members

### Public Functions

- ~QtHistoryState ()
- QtAbstractState * defaultState () const
- void setDefaultState ( QtAbstractState * state )

- 1 public function inherited from QtAbstractState
- 29 public functions inherited from QObject

### Additional Inherited Members

- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QObject
- 1 public type inherited from QObject
- 4 static public members inherited from QObject
- 2 protected functions inherited from QtAbstractState
- 7 protected functions inherited from QObject
- 2 protected variables inherited from QObject

## 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().