En esta página

Qt3DAnimation::QAnimationClipLoader Class

class Qt3DAnimation::QAnimationClipLoader

Permite cargar datos de animación de fotogramas clave desde un archivo. Más...

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

Tipos públicos

enum Status { NotReady, Ready, Error }

Propiedades

Funciones públicas

QUrl source() const
Qt3DAnimation::QAnimationClipLoader::Status status() const

Ranuras públicas

void setSource(const QUrl &source)

Señales

void sourceChanged(const QUrl &source)
void statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status)

Descripción detallada

Documentación de los tipos de miembros

enum QAnimationClipLoader::Status

Este enum identifica el estado del clip de animación.

ConstanteValorDescripción
Qt3DAnimation::QAnimationClipLoader::NotReady0El clip aún no se ha cargado
Qt3DAnimation::QAnimationClipLoader::Ready1El clip se ha cargado correctamente
Qt3DAnimation::QAnimationClipLoader::Error2Se ha producido un error al cargar el clip

Documentación de propiedades

source : QUrl

Contiene la URL de origen desde la que cargar el clip de animación. Actualmente se admiten los formatos de archivo de animación glTF2 y el nativo Qt 3D json.

En el caso de que un archivo contenga varias animaciones, es posible seleccionar qué animación debe cargarse mediante parámetros de consulta en la url de origen. Los parámetros de consulta aceptados son animationIndex y animationName. Si se especifican ambos, se ignora animationName.

Si un archivo contiene sólo una animación, no es necesario especificar el animationIndex o el animationName. Simplemente se utiliza la única animación disponible.

Funciones de acceso:

QUrl source() const
void setSource(const QUrl &source)

Señal del notificador:

void sourceChanged(const QUrl &source)

[read-only] status : Status

Esta propiedad contiene el estado del clip de animación.

Funciones de acceso:

Qt3DAnimation::QAnimationClipLoader::Status status() const

Señal del notificador:

void statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status)

Documentación de funciones miembro

Qt3DAnimation::QAnimationClipLoader::Status QAnimationClipLoader::status() const

Devuelve el estado del clip de animación.

Nota: Función Getter para el estado de la propiedad.

© 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.