Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QParallelAnimationGroup Class

The QParallelAnimationGroup class provides a parallel group of animations. More...

 #include <QParallelAnimationGroup>

Inherits: QAnimationGroup.

This class was introduced in Qt 4.6.

Public Types

enum DeletionPolicy { KeepWhenStopped, DeleteWhenStopped }
enum Direction { Forward, Backward }
enum State { Stopped, Paused, Running }

Properties

  • 1 property inherited from QObject

Public Functions

QAbstractAnimation(QObject * parent = 0)
QParallelAnimationGroup(QObject * parent = 0)
virtual ~QAbstractAnimation()
~QParallelAnimationGroup()
int currentLoop() const
int currentLoopTime() const
int currentTime() const
Direction direction() const
virtual int duration() const = 0
QAnimationGroup * group() const
int loopCount() const
void setDirection(Direction direction)
void setLoopCount(int loopCount)
State state() const
int totalDuration() const

Reimplemented Public Functions

virtual int duration() const

Public Slots

void pause()
void resume()
void setCurrentTime(int msecs)
void setPaused(bool paused)
void start(QAbstractAnimation::DeletionPolicy policy = KeepWhenStopped)
void stop()
  • 1 public slot inherited from QObject

Signals

void currentLoopChanged(int currentLoop)
void directionChanged(QAbstractAnimation::Direction newDirection)
void finished()
void stateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)

Protected Functions

virtual bool event(QEvent * event)
virtual void updateCurrentTime(int currentTime) = 0
virtual void updateDirection(QAbstractAnimation::Direction direction)
virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)

Reimplemented Protected Functions

virtual bool event(QEvent * event)
virtual void updateCurrentTime(int currentTime)
virtual void updateDirection(QAbstractAnimation::Direction direction)
virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)

Additional Inherited Members

  • 11 static public members inherited from QObject

Detailed Description

The QParallelAnimationGroup class provides a parallel group of animations.

QParallelAnimationGroup--a container for animations--starts all its animations when it is started itself, i.e., runs all animations in parallel. The animation group finishes when the longest lasting animation has finished.

You can treat QParallelAnimation as any other QAbstractAnimation, e.g., pause, resume, or add it to other animation groups.

 QParallelAnimationGroup *group = new QParallelAnimationGroup;
 group->addAnimation(anim1);
 group->addAnimation(anim2);

 group->start();

In this example, anim1 and anim2 are two QPropertyAnimations that have already been set up.

See also QAnimationGroup, QPropertyAnimation, and The Animation Framework.

Member Function Documentation

QParallelAnimationGroup::QParallelAnimationGroup(QObject * parent = 0)

Constructs a QParallelAnimationGroup. parent is passed to QObject's constructor.

QParallelAnimationGroup::~QParallelAnimationGroup()

Destroys the animation group. It will also destroy all its animations.

int QParallelAnimationGroup::duration() const [virtual]

Reimplemented from QAbstractAnimation::duration().

bool QParallelAnimationGroup::event(QEvent * event) [virtual protected]

Reimplemented from QObject::event().

void QParallelAnimationGroup::updateCurrentTime(int currentTime) [virtual protected]

Reimplemented from QAbstractAnimation::updateCurrentTime().

void QParallelAnimationGroup::updateDirection(QAbstractAnimation::Direction direction) [virtual protected]

Reimplemented from QAbstractAnimation::updateDirection().

void QParallelAnimationGroup::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) [virtual protected]

Reimplemented from QAbstractAnimation::updateState().

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web