QParallelAnimationGroup Class▲
-
Header: QParallelAnimationGroup
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
-
qmake: QT += core
-
Inherits: QAnimationGroup
-
Group: QParallelAnimationGroup is part of Animation Framework
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-&
gt;addAnimation(anim1);
group-&
gt;addAnimation(anim2);
group-&
gt;start();
In this example, anim1 and anim2 are two QPropertyAnimations that have already been set up.
See Also▲
Member Function Documentation▲
QParallelAnimationGroup::QParallelAnimationGroup(QObject *parent = nullptr)▲
Constructs a QParallelAnimationGroup. parent is passed to QObject's constructor.
[virtual] QParallelAnimationGroup::~QParallelAnimationGroup()▲
Destroys the animation group. It will also destroy all its animations.
[override virtual] int QParallelAnimationGroup::duration() const▲
Reimplements: QAbstractAnimation::duration() const.
[override virtual protected] bool QParallelAnimationGroup::event(QEvent *event)▲
Reimplements: QAnimationGroup::event(QEvent *event).
[override virtual protected] void QParallelAnimationGroup::updateCurrentTime(int currentTime)▲
Reimplements: QAbstractAnimation::updateCurrentTime(int currentTime).