이 페이지에서

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은 무시됩니다.

파일에 애니메이션이 하나만 포함된 경우, animationIndex나 animationName을 지정할 필요가 없습니다. 사용 가능한 애니메이션 하나를 그대로 사용합니다.

액세스 함수:

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

Notifier 신호:

void sourceChanged(const QUrl &source)

[read-only] status : Status

이 속성은 애니메이션 클립의 상태를 나타냅니다.

액세스 함수:

Qt3DAnimation::QAnimationClipLoader::Status status() const

알림 신호:

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.