QAnimationGroup Class
class Qt3DAnimation::QAnimationGroupA class grouping animations together. More...
Header: | #include <QAnimationGroup> |
qmake: | QT += 3danimation |
Since: | Qt 5.9 |
This class was introduced in Qt 5.9.
Public Functions
QAnimationGroup(QObject *parent = nullptr) | |
void | addAnimation(Qt3DAnimation::QAbstractAnimation *animation) |
QVector<Qt3DAnimation::QAbstractAnimation *> | animationList() |
void | removeAnimation(Qt3DAnimation::QAbstractAnimation *animation) |
void | setAnimations(const QVector<Qt3DAnimation::QAbstractAnimation *> &animations) |
Detailed Description
Qt3DAnimation::QAnimationGroup class is used to group multiple animations so that they can act as one animation. The position set to the group is also set to all animations in a group. The duration is the maximum of the individual animations. The animations can be any supported animation type and do not have to have the same name.
Member Function Documentation
QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)
Constructs an QAnimationGroup with parent.
void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Adds new animation to the group.
QVector<Qt3DAnimation::QAbstractAnimation *> QAnimationGroup::animationList()
Returns the list of animations in the group.
void QAnimationGroup::removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Removes animation from the group.
void QAnimationGroup::setAnimations(const QVector<Qt3DAnimation::QAbstractAnimation *> &animations)
Sets the animations to the group. Old animations are removed.