En esta página

Qt3DAnimation::QAnimationGroup Class

class Qt3DAnimation::QAnimationGroup

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

Encabezado: #include <QAnimationGroup>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
Heredado de: QObject
Estado: Versión preliminar

Esta clase se encuentra en fase de vista previa tecnológica y está sujeta a cambios.

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 La clase se utiliza para agrupar varias animaciones de modo que actúen como una sola. La posición establecida para el grupo se aplica también a todas las animaciones del grupo. La duración es la máxima de las animaciones individuales. Las animaciones pueden ser de cualquier tipo compatible y no es necesario que tengan el mismo nombre.

Documentación de propiedades

[read-only] duration : float

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

Funciones de acceso:

float duration() const

Señal de notificación:

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 de notificación:

void nameChanged(const QString &name)

position : float

Almacena 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 las funciones de miembro

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

Crea un `QAnimationGroup` con ` parent`.

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

Añade un nuevo « animation » al grupo.

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

Devuelve la lista de animaciones del grupo.

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

Elimina a « animation » del grupo.

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

Establece el « animations » en el 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.