Qt3DAnimation::QAnimationGroup Class
class Qt3DAnimation::QAnimationGroup애니메이션을 한데 묶은 클래스입니다. 더 보기...
| 헤더: | #include <QAnimationGroup> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| 상속: | QObject |
| 상태: | 기술 미리보기 |
이 클래스는 기술 미리보기 단계에 있으며 변경될 수 있습니다.
속성
공개 함수
| 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 : float
그룹 내 애니메이션의 최대 지속 시간을 저장합니다.
액세스 함수:
| float | duration() const |
알림 신호:
| void | durationChanged(float duration) |
name : QString
애니메이션 그룹의 이름을 저장합니다.
액세스 함수:
| QString | name() const |
| void | setName(const QString &name) |
Notifier 신호:
| 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 를 해당 그룹으로 설정합니다. 기존 애니메이션은 삭제됩니다.
© 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.