QAbstractAnimation Class

class Qt3DAnimation::QAbstractAnimation

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

Header: #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

Status: Deprecated

공용 유형

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)

알림 신호:

void animationNameChanged(const QString &name)

[read-only] animationType : const AnimationType

애니메이션 유형을 보유합니다.

함수에 액세스합니다:

Qt3DAnimation::QAbstractAnimation::AnimationType animationType() const

[read-only] duration : const float

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

기능에 액세스합니다:

float duration() const

알림 신호:

void durationChanged(float duration)

position : float

애니메이션의 현재 위치를 유지합니다.

기능에 액세스합니다:

float position() const
void setPosition(float position)

알림 신호:

void positionChanged(float position)

멤버 함수 문서

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

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

duration()도 참조하세요 .

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