QStateMachine

#include <QtCore/QStateMachine>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QStateMachine


Overview

Inheritance

QAbstractState
QState
QStateMachine

Properties Index

Public Functions Index

QStateMachine (QObject *parent=0)
~QStateMachine ()
voidaddDefaultAnimation (QAbstractAnimation *animation)
voidaddState (QAbstractState *state)
boolcancelDelayedEvent (int id)
voidclearError ()
QSet< QAbstractState * >configuration () const
QList< QAbstractAnimation * >defaultAnimations () const
Errorerror () const
QStringerrorString () const
virtual booleventFilter (QObject *watched, QEvent *event)
QStateMachine::RestorePolicyglobalRestorePolicy () const
boolisAnimated () const
boolisRunning () const
intpostDelayedEvent (QEvent *event, int delay)
voidpostEvent (QEvent *event, EventPriority priority=NormalPriority)
voidremoveDefaultAnimation (QAbstractAnimation *animation)
voidremoveState (QAbstractState *state)
voidsetAnimated (bool enabled)
voidsetGlobalRestorePolicy (QStateMachine::RestorePolicy restorePolicy)
voidaddTransition (QAbstractTransition *transition)Inherited
QSignalTransition *addTransition (QObject *sender, const char *signal, QAbstractState *target)Inherited
QAbstractTransition *addTransition (QAbstractState *target)Inherited
voidassignProperty (QObject *object, const char *name, const QVariant &value)Inherited
ChildModechildMode () const Inherited
QAbstractState *errorState () const Inherited
QAbstractState *initialState () const Inherited
QStateMachine *machine () const Inherited
QState *parentState () const Inherited
QState (QState *parent=0)Inherited
QState (ChildMode childMode, QState *parent=0)Inherited
voidremoveTransition (QAbstractTransition *transition)Inherited
voidsetChildMode (ChildMode mode)Inherited
voidsetErrorState (QAbstractState *state)Inherited
voidsetInitialState (QAbstractState *state)Inherited
QList< QAbstractTransition * >transitions () const Inherited

Protected Functions Index

QStateMachine (QStateMachinePrivate &dd, QObject *parent)
virtual voidbeginMicrostep (QEvent *event)
virtual voidbeginSelectTransitions (QEvent *event)
virtual voidendMicrostep (QEvent *event)
virtual voidendSelectTransitions (QEvent *event)
virtual boolevent (QEvent *e)
virtual voidonEntry (QEvent *event)
virtual voidonExit (QEvent *event)
QAbstractState (QState *parent=0)Inherited
QAbstractState (QAbstractStatePrivate &dd, QState *parent)Inherited
QState (QStatePrivate &dd, QState *parent)Inherited

Public Slots Index

voidstart ()
voidstop ()

Signals Index

voidstarted ()
voidstopped ()
voidfinished ()Inherited
voidpropertiesAssigned ()Inherited

Public Types

Error

NoError
NoInitialStateError
NoDefaultStateInHistoryStateError
NoCommonAncestorForTransitionError

EventPriority

NormalPriority
HighPriority

RestorePolicy

DontRestoreProperties
RestoreProperties

ChildMode Inherited

ExclusiveStates
ParallelStates

Properties

bool animated

QString errorString[read-only]

RestorePolicy globalRestorePolicy

ChildMode childModeInherited

QAbstractState errorStateInherited

QAbstractState initialStateInherited

Public Functions

QStateMachine (

~QStateMachine ()

Destructor.

void addDefaultAnimation (

void addState (

bool cancelDelayedEvent (
  • intid)

void clearError ()

QSet< QAbstractState * > configuration ()

QList< QAbstractAnimation * > defaultAnimations ()

Error error ()

QString errorString ()

virtual bool eventFilter (

QStateMachine::RestorePolicy globalRestorePolicy ()

bool isAnimated ()

bool isRunning ()

int postDelayedEvent (

void postEvent (
  • QEvent *event,
  • EventPrioritypriority )

void removeDefaultAnimation (

void removeState (

void setAnimated (
  • boolenabled)

void setGlobalRestorePolicy (
  • QStateMachine::RestorePolicyrestorePolicy)

void addTransition (Inherited

QSignalTransition * addTransition (Inherited

QAbstractTransition * addTransition (Inherited

void assignProperty (Inherited

ChildMode childMode ()Inherited

QAbstractState * errorState ()Inherited

QAbstractState * initialState ()Inherited

QStateMachine * machine ()Inherited

QState * parentState ()Inherited

QState (Inherited

QState (
  • ChildModechildMode,
  • QState *parent )
Inherited

void removeTransition (Inherited

void setChildMode (
  • ChildModemode)
Inherited

void setErrorState (Inherited

void setInitialState (Inherited

QList< QAbstractTransition * > transitions ()Inherited

Protected Functions

QStateMachine (
  • QStateMachinePrivate &dd,
  • QObject *parent )

virtual void beginMicrostep (

virtual void beginSelectTransitions (

virtual void endMicrostep (

virtual void endSelectTransitions (

virtual bool event (

virtual void onEntry (

virtual void onExit (

QAbstractState (Inherited

QAbstractState (
  • QAbstractStatePrivate &dd,
  • QState *parent )
Inherited

QState (
  • QStatePrivate &dd,
  • QState *parent )
Inherited

Public Slots

void start ()

void stop ()

Signals

void started ()

void stopped ()

void finished ()Inherited

void propertiesAssigned ()Inherited

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus