|  | Home

# QtStateFinishedTransition Class Reference
[QtCore module]

The QtStateFinishedTransition class provides a transition that triggers when a state is finished. More...

     #include <QtStateFinishedTransition>

Inherits QtTransition.

- List of all members, including inherited members

### Public Functions

- QtStateFinishedTransition ( QtAbstractStateGroup * state )
- ~QtStateFinishedTransition ()

- 3 public functions inherited from QtTransition
- 2 public functions inherited from QtAbstractTransition
- 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 QtAbstractTransition
- 7 protected functions inherited from QObject
- 2 protected variables inherited from QObject

## Detailed Description

The QtStateFinishedTransition class provides a transition that triggers when a state is finished.

A state is finished when one of its final child states (a QtFinalState) is entered; this will cause a QtStateFinishedEvent to be generated. The QtStateFinishedTransition class provides a way of associating a transition with such an event. QtStateFinishedTransition is part of The State Machine Framework.

     QtStateMachine machine;
     QtState *s1 = new QtState(machine.rootState());
     QtState *s11 = new QtState(s1);
     QtFinalState *s12 = new QtFinalState(s1);
     s11->addTransition(s12);

     QtState *s2 = new QtState(machine.rootState());
     s1->addTransition(new QtStateFinishedTransition(s1), s2);

See also QtAbstractStateGroup::addFinishedTransition() and QtStateFinishedEvent.

## Member Function Documentation

### QtStateFinishedTransition::QtStateFinishedTransition ( QtAbstractStateGroup * state )

Constructs a new QtStateFinishedTransition object associated with the given state.

See also QtAbstractStateGroup::addTransition() and QtAbstractStateGroup::addFinishedTransition().

### QtStateFinishedTransition::~QtStateFinishedTransition ()

Destroys this QtStateFinishedTransition.