![]() |
Home |
The QtAbstractTransition class is the base class of transitions between QtAbstractState objects. More...
#include <QtAbstractTransition>
Inherits QObject.
Inherited by QtTransition.
The QtAbstractTransition class is the base class of transitions between QtAbstractState objects.
The QtAbstractTransition class is the abstract base class of transitions between states (QtAbstractState objects) of a QtStateMachine. QtAbstractTransition is part of The State Machine Framework.
The QtTransition class provides a default (action-based) implementation of the QtAbstractTransition interface.
The sourceState() function returns the source of the transition. The targetStates() function returns the targets of the transition.
Transitions can cause animations to be played. Use the addAnimation() function to add an animation to the transition.
The eventTest() function is called by the state machine to determine whether an event should trigger the transition. In your reimplementation you typically check the event type and cast the event object to the proper type, and check that one or more properties of the event meet your criteria.
The onTransition() function is called when the transition is triggered; reimplement this function to perform custom processing for the transition.
This property holds the source state (parent) of this transition.
Access functions:
This property holds the target state of this transition.
Access functions:
This property holds the target states of this transition.
If multiple states are specified, all must be descendants of the same parallel group state.
Access functions:
Constructs a new QtAbstractTransition object with the given sourceState.
Constructs a new QtAbstractTransition object with the given targets and sourceState.
Destroys this transition.
Adds the given animation to this transition. The transition does not take ownership of the animation.
See also removeAnimation() and animations().
Returns the list of animations associated with this transition, or an empty list if it has no animations.
See also addAnimation().
This function is called to determine whether the given event should cause this transition to trigger. Reimplement this function and return true if the event should trigger the transition, otherwise return false.
This function is called when the transition is triggered. Reimplement this function to perform custom processing when the transition is triggered.
Removes the given animation from this transition.
See also addAnimation().
Copyright © 2009 Nokia | Trademarks | Qt Solutions |