QAnimationGroup Class

class Qt3DAnimation::QAnimationGroup

A class grouping animations together. More...

Header: #include <QAnimationGroup>
qmake: QT += 3danimation
Since: Qt 5.9
Inherits: QObject

This class was introduced in Qt 5.9.

Properties

Public Functions

float duration() const
QString name() const
float position() const

Public Slots

void setName(const QString &name)
void setPosition(float position)

Signals

void durationChanged(float duration)
void nameChanged(const QString &name)
void positionChanged(float position)

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.

Property Documentation

duration : const float

Holds the maximum duration of the animations in the group.

Access functions:

float duration() const

Notifier signal:

void durationChanged(float duration)

name : QString

Holds the name of the animation group.

Access functions:

QString name() const
void setName(const QString &name)

Notifier signal:

void nameChanged(const QString &name)

position : float

Holds the animation position.

Access functions:

float position() const
void setPosition(float position)

Notifier signal:

void positionChanged(float position)