このページでは

Qt3DAnimation::QAnimationClipLoader Class

class Qt3DAnimation::QAnimationClipLoader

ファイルからキーフレームアニメーションデータを読み込むことができます。詳細...

ヘッダー: #include <qanimationcliploader.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
継承元: Qt3DAnimation::QAbstractAnimationClip
ステータス: テクノロジープレビュー

このクラスはテクノロジープレビュー段階にあり、変更される可能性があります。

パブリック型

enum Status { NotReady, Ready, Error }

プロパティ

パブリック関数

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

パブリックスロット

void setSource(const QUrl &source)

シグナル

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

詳細な説明

メンバ型のドキュメント

enum QAnimationClipLoader::Status

この列挙型は、アニメーションクリップの状態を表します。

定数値説明
Qt3DAnimation::QAnimationClipLoader::NotReady0クリップはまだ読み込まれていません
Qt3DAnimation::QAnimationClipLoader::Ready1クリップが正常に読み込まれました
Qt3DAnimation::QAnimationClipLoader::Error2クリップの読み込み中にエラーが発生しました

プロパティのドキュメント

source : QUrl

アニメーションクリップを読み込む元のURLを保持します。現在、glTF2およびQt 3D のネイティブJSONアニメーションファイル形式がサポートされています。

ファイルに複数のアニメーションが含まれている場合、ソースURLのクエリパラメータを指定することで、読み込むアニメーションを選択することができます。使用可能なクエリパラメータは「animationIndex」と「animationName」です。両方が指定された場合、「animationName」は無視されます。

ファイルにアニメーションが1つしか含まれていない場合、animationIndexやanimationNameを指定する必要はありません。利用可能な1つのアニメーションが自動的に使用されます。

アクセス関数:

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

Notifierシグナル:

void sourceChanged(const QUrl &source)

[read-only] status : Status

このプロパティには、アニメーションクリップの状態が格納されています。

アクセス関数:

Qt3DAnimation::QAnimationClipLoader::Status status() const

Notifierシグナル:

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

メンバ関数のドキュメント

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

アニメーションクリップのステータスを返します。

注: プロパティ「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.