Home

QtState Class Reference
[QtCore module]

The QtState class provides a default state implementation for QtStateMachine. More...

 #include <QtState>

Inherits QtAbstractStateGroup.

Inherited by QtAnimationState.

Public Functions

Additional Inherited Members


Detailed Description

The QtState class provides a default state implementation for QtStateMachine.

QtState is part of The State Machine Framework.

The setInitialState() function sets the initial state; this is only relevant for states that have child states. The child states are mutually exclusive states, and the state machine needs to know which child state to enter when the parent state is the target of a transition.


Member Function Documentation

QtState::QtState ( QtAbstractStateGroup * parent = 0 )

Constructs a new state with the given parent state.

QtState::~QtState ()

Destroys this state.

QtAbstractState * QtState::initialState () const

Returns this state's initial state, or 0 if the state has no initial state.

See also setInitialState().

void QtState::setInitialState ( QtAbstractState * state )

Sets this state's initial state to be the given state. state has to be a child of this state.

See also initialState().


Copyright © 2009 Nokia Trademarks
Qt Solutions