QAnimationGroup Class
class Qt3DAnimation::QAnimationGroupEine Klasse, die Animationen gruppiert. Mehr...
Kopfzeile: | #include <QAnimationGroup> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
qmake: | QT += 3danimation |
Vererbt: | QObject |
Status: | Veraltet |
Eigenschaften
Öffentliche Funktionen
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) |
Öffentliche Slots
void | setName(const QString &name) |
void | setPosition(float position) |
Signale
void | durationChanged(float duration) |
void | nameChanged(const QString &name) |
void | positionChanged(float position) |
Detaillierte Beschreibung
Qt3DAnimation::QAnimationGroup Diese Klasse wird verwendet, um mehrere Animationen zu gruppieren, so dass sie wie eine einzige Animation wirken können. Die der Gruppe zugewiesene Position wird auch für alle Animationen in einer Gruppe festgelegt. Die Dauer ist das Maximum der einzelnen Animationen. Die Animationen können alle unterstützten Animationstypen sein und müssen nicht den gleichen Namen haben.
Dokumentation der Eigenschaft
[read-only]
duration : const float
Enthält die maximale Dauer der Animationen in der Gruppe.
Zugriffsfunktionen:
float | duration() const |
Melder-Signal:
void | durationChanged(float duration) |
name : QString
Enthält den Namen der Animationsgruppe.
Zugriffsfunktionen:
QString | name() const |
void | setName(const QString &name) |
Benachrichtigungssignal:
void | nameChanged(const QString &name) |
position : float
Hält die Position der Animation.
Zugriffsfunktionen:
float | position() const |
void | setPosition(float position) |
Benachrichtigungssignal:
void | positionChanged(float position) |
Member Function Dokumentation
[explicit]
QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)
Konstruiert eine QAnimationGroup mit parent.
void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Fügt der Gruppe neue animation hinzu.
QList<Qt3DAnimation::QAbstractAnimation *> QAnimationGroup::animationList()
Gibt die Liste der Animationen in der Gruppe zurück.
void QAnimationGroup::removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Entfernt animation aus der Gruppe.
void QAnimationGroup::setAnimations(const QList<Qt3DAnimation::QAbstractAnimation *> &animations)
Setzt die animations auf die Gruppe. Alte Animationen werden entfernt.
© 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.