A class grouping animations together. More...
Header: | #include <QAnimationGroup> |
CMake: | find_package(Qt6 COMPONENTS 3danimation REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
qmake: | QT += 3danimation |
Since: | Qt 5.9 |
Inherits: | QObject |
QAnimationGroup(QObject *parent = nullptr) | |
void | addAnimation(Qt3DAnimation::QAbstractAnimation *animation) |
QList<Qt3DAnimation::QAbstractAnimation *> | animationList() |
float | duration() const |
QString | name() const |
float | position() const |
void | removeAnimation(Qt3DAnimation::QAbstractAnimation *animation) |
void | setAnimations(const QList<Qt3DAnimation::QAbstractAnimation *> &animations) |
void | setName(const QString &name) |
void | setPosition(float position) |
void | durationChanged(float duration) |
void | nameChanged(const QString &name) |
void | positionChanged(float position) |
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.
[read-only]
duration : const float
Holds the maximum duration of the animations in the group.
Access functions:
float | duration() const |
Notifier signal:
void | durationChanged(float duration) |
Holds the name of the animation group.
Access functions:
QString | name() const |
void | setName(const QString &name) |
Notifier signal:
void | nameChanged(const QString &name) |
Holds the animation position.
Access functions:
float | position() const |
void | setPosition(float position) |
Notifier signal:
void | positionChanged(float position) |
Constructs an QAnimationGroup with parent.
Adds new animation to the group.
Returns the list of animations in the group.
Removes animation from the group.
Sets the animations to the group. Old animations are removed.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qt3danimation-qanimationgroup.html