The QParallelAnimationGroup class provides a parallel group of animations. More...
#include <QParallelAnimationGroup>
Inherits: QAnimationGroup.
This class was introduced in Qt 4.6.
QParallelAnimationGroup ( QObject * parent = 0 ) | |
~QParallelAnimationGroup () |
virtual int | duration () const |
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 ) |
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.
Constructs a QParallelAnimationGroup. parent is passed to QObject's constructor.
Destroys the animation group. It will also destroy all its animations.
Reimplemented from QAbstractAnimation::duration().
Reimplemented from QObject::event().
Reimplemented from QAbstractAnimation::updateCurrentTime().
Reimplemented from QAbstractAnimation::updateDirection().
Reimplemented from QAbstractAnimation::updateState().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.