QParallelAnimationGroup Class
The QParallelAnimationGroup class provides a parallel group of animations. More...
| Header: | #include <QParallelAnimationGroup> |
| qmake: | QT += core |
| Since: | Qt 4.6 |
| Inherits: | QAnimationGroup |
This class was introduced in Qt 4.6.
Detailed Description
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 QParallelAnimationGroup 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.