|  | Home · All Classes · All Functions · Overviews

# QParallelAnimationGroup Class Reference
[QtCore module]

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

     #include <QParallelAnimationGroup>

Inherits QAnimationGroup.

This class was introduced in Qt 4.6.

- List of all members, including inherited members

## Public Functions

| QParallelAnimationGroup ( QObject * parent = 0 )
| ~QParallelAnimationGroup ()

## Reimplemented Public Functions

virtual int | duration () const

- 8 public functions inherited from QAnimationGroup
- 11 public functions inherited from QAbstractAnimation
- 29 public functions inherited from QObject

## 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 )

- 1 protected function inherited from QAnimationGroup
- 4 protected functions inherited from QAbstractAnimation
- 7 protected functions inherited from QObject

### Additional Inherited Members

- 6 properties inherited from QAbstractAnimation
- 1 property inherited from QObject
- 6 public slots inherited from QAbstractAnimation
- 1 public slot inherited from QObject
- 4 signals inherited from QAbstractAnimation
- 1 signal inherited from QObject
- 5 static public members inherited from QObject
- 1 protected function inherited from QAnimationGroup
- 4 protected functions inherited from QAbstractAnimation
- 7 protected functions 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().