Auf dieser Seite

Qt3DAnimation::QAnimationClipLoader Class

class Qt3DAnimation::QAnimationClipLoader

Ermöglicht das Laden von Keyframe-Animationsdaten aus einer Datei. Mehr...

Überschrift: #include <qanimationcliploader.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
Erbt von: Qt3DAnimation::QAbstractAnimationClip
Status: Technologievorschau

Diese Klasse befindet sich in der Technologievorschau und kann sich noch ändern.

Öffentliche Typen

enum Status { NotReady, Ready, Error }

Eigenschaften

Öffentliche Funktionen

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

Öffentliche Slots

void setSource(const QUrl &source)

Signale

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

Detaillierte Beschreibung

Dokumentation zu Mitgliedstypen

enum QAnimationClipLoader::Status

Diese Enumeration gibt den Status eines Animationsclips an.

KonstanteWertBeschreibung
Qt3DAnimation::QAnimationClipLoader::NotReady0Der Clip wurde noch nicht geladen
Qt3DAnimation::QAnimationClipLoader::Ready1Der Clip wurde erfolgreich geladen
Qt3DAnimation::QAnimationClipLoader::Error2Beim Laden des Clips ist ein Fehler aufgetreten

Dokumentation der Eigenschaften

source : QUrl

Enthält die Quell-URL, von der der Animationsclip geladen werden soll. Derzeit werden die Dateiformate glTF2 und die nativen JSON-Animationsdateiformate „ Qt 3D “ unterstützt.

Falls eine Datei mehrere Animationen enthält, kann über Abfrageparameter in der Quell-URL ausgewählt werden, welche Animation geladen werden soll. Die zulässigen Abfrageparameter sind „animationIndex“ und „animationName“. Sind beide angegeben, wird „animationName“ ignoriert.

Enthält eine Datei nur eine einzige Animation, müssen weder „animationIndex“ noch „animationName“ angegeben werden. Es wird einfach die einzige verfügbare Animation verwendet.

Zugriffsfunktionen:

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

Notifier-Signal:

void sourceChanged(const QUrl &source)

[read-only] status : Status

Diese Eigenschaft enthält den Status des Animationsclips.

Zugriffsfunktionen:

Qt3DAnimation::QAnimationClipLoader::Status status() const

Notifier-Signal:

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

Dokumentation der Member-Funktionen

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

Gibt den Status des Animationsclips zurück.

Hinweis: Getter -Funktion für die Eigenschaft „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.