En esta página

Qt3DAnimation::QAnimationGroup Class

class Qt3DAnimation::QAnimationGroup

Una clase que agrupa animaciones. Más...

Cabecera: #include <QAnimationGroup>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
Hereda: QObject
Status: Obsoleto

Propiedades

Funciones públicas

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)

Ranuras públicas

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

Señales

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

Descripción Detallada

Qt3DAnimation::QAnimationGroup Esta clase se utiliza para agrupar múltiples animaciones para que puedan actuar como una sola animación. La posición fijada al grupo también se fija a todas las animaciones en un grupo. La duración es el máximo de las animaciones individuales. Las animaciones pueden ser de cualquier tipo soportado y no tienen que tener el mismo nombre.

Documentación de propiedades

[read-only] duration : float

Mantiene la duración máxima de las animaciones del grupo.

Funciones de acceso:

float duration() const

Señal de aviso:

void durationChanged(float duration)

name : QString

Contiene el nombre del grupo de animación.

Funciones de acceso:

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

Señal del notificador:

void nameChanged(const QString &name)

position : float

Mantiene la posición de la animación.

Funciones de acceso:

float position() const
void setPosition(float position)

Señal del notificador:

void positionChanged(float position)

Documentación de la función miembro

[explicit] QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)

Construye un QAnimationGroup con parent.

void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)

Añade nuevos animation al grupo.

QList<Qt3DAnimation::QAbstractAnimation *> QAnimationGroup::animationList()

Devuelve la lista de animaciones del grupo.

void QAnimationGroup::removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)

Elimina animation del grupo.

void QAnimationGroup::setAnimations(const QList<Qt3DAnimation::QAbstractAnimation *> &animations)

Establece el animations al grupo. Se eliminan las animaciones antiguas.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.