QAnimationClipLoader Class


Enables loading key frame animation data from a file More...

Header: #include <QAnimationClipLoader>
qmake: QT += 3danimation
Inherits: Qt3DAnimation::QAbstractAnimationClip

Public Types

enum Status { NotReady, Ready, Error }


Public Functions

QAnimationClipLoader(Qt3DCore::QNode *parent = nullptr)
QAnimationClipLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)
QUrl source() const
Status status() const

Public Slots

void setSource(const QUrl &source)


void sourceChanged(const QUrl &source)
void statusChanged(Status status)

Protected Functions

QAnimationClipLoader(QAnimationClipLoaderPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Additional Inherited Members

  • 11 static public members inherited from QObject

Detailed Description

Enables loading key frame animation data from a file

Member Type Documentation

enum QAnimationClipLoader::Status

This enum identifies the status of animation clip.

Qt3DAnimation::QAnimationClipLoader::NotReady0The clip has not been loaded yet
Qt3DAnimation::QAnimationClipLoader::Ready1The clip was successfully loaded
Qt3DAnimation::QAnimationClipLoader::Error2An error occurred while loading the clip

Property Documentation

source : QUrl

Holds the source URL from which to load the animation clip.

Access functions:

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

Notifier signal:

void sourceChanged(const QUrl &source)

status : const Status

This property contains the status of the animation clip.

Access functions:

Status status() const

Notifier signal:

void statusChanged(Status status)

Member Function Documentation

QAnimationClipLoader::QAnimationClipLoader(Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QAnimationClipLoader.

QAnimationClipLoader::QAnimationClipLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QAnimationClipLoader.

[protected] QAnimationClipLoader::QAnimationClipLoader(QAnimationClipLoaderPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Copy constructor.


Destroys the instance of QAnimationClipLoader.

Status QAnimationClipLoader::status() const

Returns the status of the animation clip.

Note: Getter function for property status.

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