Qt3DAnimation::QAnimationClipLoader Class
class Qt3DAnimation::QAnimationClipLoaderPermet de charger les données d'animation des images clés à partir d'un fichier. Plus d'informations...
| En-tête : | #include <QAnimationClipLoader> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3danimation)target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake : | QT += 3danimation |
| Hérite : | Qt3DAnimation::QAbstractAnimationClip |
| Statut : | Déclassé |
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 des types de membres
enum QAnimationClipLoader::Status
Cette énumération identifie le statut du clip d'animation.
| Constante | Valeur | Description de l'état |
|---|---|---|
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 le clip d'animation doit être chargé. Actuellement, les formats de fichiers d'animation glTF2 et Qt 3D json sont pris en charge.
Lorsqu'un fichier contient plusieurs animations, il est possible de sélectionner l'animation à charger à l'aide des paramètres de requête de 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 la seule animation disponible.
Fonctions d'accès :
| QUrl | source() const |
| void | setSource(const QUrl &source) |
Signal Notifier :
| void | sourceChanged(const QUrl &source) |
[read-only] status : Status
Cette propriété contient le statut du clip d'animation.
Fonctions d'accès :
| Qt3DAnimation::QAnimationClipLoader::Status | status() const |
Signal Notifier :
| void | statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status) |
Fonction membre Documentation
Qt3DAnimation::QAnimationClipLoader::Status QAnimationClipLoader::status() const
Renvoie le statut du clip d'animation.
Remarque : fonction Getter pour le statut de la propriété.
© 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.