Qt3DAnimation::QAnimationClipLoader Class
class Qt3DAnimation::QAnimationClipLoaderPermite cargar datos de animación de fotogramas clave desde un archivo. Más...
| Encabezado: | #include <qanimationcliploader.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| Heredado de: | Qt3DAnimation::QAbstractAnimationClip |
| Estado: | Versión preliminar |
Esta clase se encuentra en fase de vista previa tecnológica y está sujeta a cambios.
Tipos públicos
| enum | Status { NotReady, Ready, Error } |
Propiedades
Funciones públicas
Ranuras públicas
| void | setSource(const QUrl &source) |
Señales
| void | sourceChanged(const QUrl &source) |
| void | statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status) |
Documentación sobre tipos de miembros
enum QAnimationClipLoader::Status
Esta enumeración identifica el estado de un clip de animación.
| Constante | Valor | Descripción |
|---|---|---|
Qt3DAnimation::QAnimationClipLoader::NotReady | 0 | El clip aún no se ha cargado |
Qt3DAnimation::QAnimationClipLoader::Ready | 1 | El clip se ha cargado correctamente |
Qt3DAnimation::QAnimationClipLoader::Error | 2 | Se ha producido un error al cargar el clip |
Documentación de propiedades
source : QUrl
Contiene la URL de origen desde la que se carga el clip de animación. Actualmente se admiten los formatos de archivo de animación glTF2 y el formato nativo de Qt 3D en formato JSON.
En el caso de que un archivo contenga varias animaciones, es posible seleccionar qué animación se debe cargar 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 una sola animación, no es necesario especificar ni animationIndex ni animationName. Simplemente se utiliza la única animación disponible.
Funciones de acceso:
| QUrl | source() const |
| void | setSource(const QUrl &source) |
Señal de 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 de notificación:
| void | statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status) |
Documentación de funciones de miembro
Qt3DAnimation::QAnimationClipLoader::Status QAnimationClipLoader::status() const
Devuelve el estado del clip de animación.
Nota: Funcióngetter para la propiedad status.
© 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.