Qt3DAnimation::QAnimationClipLoader Class
class Qt3DAnimation::QAnimationClipLoaderPermet de charger les données d'animation des images clés à partir d'un fichier. En savoir plus...
| En-tête : | #include <qanimationcliploader.h> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake : | QT += 3danimation |
| Hérite de : | Qt3DAnimation::QAbstractAnimationClip |
| Statut : | Aperçu technologique |
Cette classe est en avant-première technologique et est susceptible d'être modifiée.
Types publics
| enum | Status { NotReady, Ready, Error } |
Propriétés
Fonctions publiques
Emplacements publics
| void | setSource(const QUrl &source) |
Signaux
| void | sourceChanged(const QUrl &source) |
| void | statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status) |
Documentation sur les types de membres
enum QAnimationClipLoader::Status
Cette énumération identifie l'état d'un clip d'animation.
| Constante | Valeur | Description |
|---|---|---|
Qt3DAnimation::QAnimationClipLoader::NotReady | 0 | Le clip n'a pas encore été chargé |
Qt3DAnimation::QAnimationClipLoader::Ready | 1 | Le clip a été chargé avec succès |
Qt3DAnimation::QAnimationClipLoader::Error | 2 | Une erreur s'est produite lors du chargement du clip |
Documentation sur les propriétés
source : QUrl
Contient l'URL source à partir de laquelle charger le clip d'animation. Actuellement, les formats de fichiers d'animation glTF2 et JSON natifs de Qt 3D sont pris en charge.
Lorsqu’un fichier contient plusieurs animations, il est possible de sélectionner celle à charger à l’aide de paramètres de requête dans l’URL source. Les paramètres de requête acceptés sont animationIndex et animationName. Si les deux sont spécifiés, animationName est ignoré.
Si un fichier ne contient qu’une seule animation, il n’est pas nécessaire de spécifier animationIndex ou animationName. Nous utilisons simplement l’animation disponible.
Fonctions d’accès :
| QUrl | source() const |
| void | setSource(const QUrl &source) |
Signal de notification :
| void | sourceChanged(const QUrl &source) |
[read-only] status : Status
Cette propriété indique l'état du clip d'animation.
Fonctions d'accès :
| Qt3DAnimation::QAnimationClipLoader::Status | status() const |
Signal de notification :
| void | statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status) |
Documentation des fonctions membres
Qt3DAnimation::QAnimationClipLoader::Status QAnimationClipLoader::status() const
Renvoie l'état du clip d'animation.
Remarque : fonctiongetter pour la propriété 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.