QAnimationGroup Class

class Qt3DAnimation::QAnimationGroup

애니메이션을 함께 그룹화하는 클래스입니다. 더 보기...

Header: #include <QAnimationGroup>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
상속합니다: QObject
상태: Deprecated

속성

공용 기능

QAnimationGroup(QObject *parent = nullptr)
void addAnimation(Qt3DAnimation::QAbstractAnimation *animation)
QList<Qt3DAnimation::QAbstractAnimation *> animationList()
float duration() const
QString name() const
float position() const
void removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)
void setAnimations(const QList<Qt3DAnimation::QAbstractAnimation *> &animations)

공용 슬롯

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

신호

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

상세 설명

Qt3DAnimation::QAnimationGroup 클래스는 여러 애니메이션을 그룹화하여 하나의 애니메이션처럼 동작할 수 있도록 하는 데 사용됩니다. 그룹에 설정된 위치는 그룹의 모든 애니메이션에도 설정됩니다. 지속 시간은 개별 애니메이션의 최대 길이입니다. 애니메이션은 지원되는 모든 애니메이션 유형이 될 수 있으며 이름이 같을 필요는 없습니다.

속성 문서

[read-only] duration : const float

그룹에 있는 애니메이션의 최대 지속 시간을 보유합니다.

기능에 액세스합니다:

float duration() const

알림 신호:

void durationChanged(float duration)

name : QString

애니메이션 그룹의 이름을 보유합니다.

기능에 액세스합니다:

QString name() const
void setName(const QString &name)

알림 신호:

void nameChanged(const QString &name)

position : float

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

기능에 액세스합니다:

float position() const
void setPosition(float position)

알림 신호:

void positionChanged(float position)

멤버 함수 문서

[explicit] QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)

parent 를 사용하여 QAnimationGroup을 구성합니다.

void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)

그룹에 animation 을 새로 추가합니다.

QList<Qt3DAnimation::QAbstractAnimation *> QAnimationGroup::animationList()

그룹에 있는 애니메이션 목록을 반환합니다.

void QAnimationGroup::removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)

그룹에서 animation 을 제거합니다.

void QAnimationGroup::setAnimations(const QList<Qt3DAnimation::QAbstractAnimation *> &animations)

animations 을 그룹으로 설정합니다. 이전 애니메이션이 제거됩니다.

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