이 페이지에서

Qt3DAnimation::QAbstractAnimation Class

class Qt3DAnimation::QAbstractAnimation

Qt3D 애니메이션을 위한 추상 기본 클래스. 더 보기...

헤더: #include <QAbstractAnimation>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
QML에서: AbstractAnimation
상속: QObject
상속받는 클래스:

Qt3DAnimation::QKeyframeAnimation, Qt3DAnimation::QMorphingAnimation 및 Qt3DAnimation::QVertexBlendAnimation

상태: 기술 미리보기

이 클래스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.

공개 유형

enum AnimationType { KeyframeAnimation, MorphingAnimation, VertexBlendAnimation }

속성

공개 함수

QString animationName() const
Qt3DAnimation::QAbstractAnimation::AnimationType animationType() const
float duration() const
float position() const

공개 슬롯

void setAnimationName(const QString &name)
void setPosition(float position)

신호

void animationNameChanged(const QString &name)
void durationChanged(float duration)
void positionChanged(float position)

보호된 함수

void setDuration(float duration)

상세 설명

Qt3DAnimation::QAbstractAnimation 는 모든 애니메이션의 추상 기본 클래스입니다. Qt3DAnimation::QAbstractAnimation 은 직접 인스턴스화할 수 없으며, 하위 클래스를 통해 인스턴스화해야 합니다. QAbstractAnimation은 애니메이션 이름 및 유형, 현재 위치, 애니메이션 지속 시간 등 모든 Qt3D 애니메이션에 공통적인 속성을 지정하는 한편, 실제 애니메이션 처리는 하위 클래스에 맡깁니다.

멤버 유형 문서

enum QAbstractAnimation::AnimationType

이 열거형은 애니메이션의 유형을 지정합니다

상수값설명
Qt3DAnimation::QAbstractAnimation::KeyframeAnimation1블렌드 셰이프 모핑 애니메이션을 위한 간단한 키프레임 구현 QTransform
Qt3DAnimation::QAbstractAnimation::MorphingAnimation2블렌드 셰이프 모핑 애니메이션
Qt3DAnimation::QAbstractAnimation::VertexBlendAnimation3버텍스 블렌드 애니메이션

속성 설명서

animationName : QString

애니메이션의 이름을 저장합니다.

액세스 함수:

QString animationName() const
void setAnimationName(const QString &name)

Notifier 신호:

void animationNameChanged(const QString &name)

[read-only] animationType : const AnimationType

애니메이션의 유형을 저장합니다.

액세스 함수:

Qt3DAnimation::QAbstractAnimation::AnimationType animationType() const

[read-only] duration : float

애니메이션의 지속 시간을 저장합니다.

액세스 함수:

float duration() const

알림 신호:

void durationChanged(float duration)

position : float

애니메이션의 현재 위치를 저장합니다.

액세스 함수:

float position() const
void setPosition(float position)

Notifier 신호:

void positionChanged(float position)

멤버 함수 문서

[protected] void QAbstractAnimation::setDuration(float duration)

애니메이션의 duration 을 설정합니다.

duration()도 참조하십시오 .

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