Qt3DAnimation::QAnimationGroup Class
class Qt3DAnimation::QAnimationGroupEine Klasse, die Animationen zusammenfasst. Mehr...
| Überschrift: | #include <QAnimationGroup> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| Erbt von: | QObject |
| Status: | Technologievorschau |
Diese Klasse befindet sich in der Technologievorschau und kann sich noch ändern.
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) |
Ausführliche Beschreibung
Qt3DAnimation::QAnimationGroup Die Klasse dient dazu, mehrere Animationen zu einer Gruppe zusammenzufassen, sodass sie als eine einzige Animation wirken. Die für die Gruppe festgelegte Position gilt auch für alle Animationen in der Gruppe. Die Dauer entspricht der maximalen Dauer der einzelnen Animationen. Die Animationen können jeden unterstützten Animationstyp haben und müssen nicht denselben Namen tragen.
Eigenschaftsdokumentation
[read-only] duration : float
Enthält die maximale Dauer der Animationen in der Gruppe.
Zugriffsfunktionen:
| float | duration() const |
Benachrichtigungssignal:
| void | durationChanged(float duration) |
name : QString
Enthält den Namen der Animationsgruppe.
Zugriffsfunktionen:
| QString | name() const |
| void | setName(const QString &name) |
Notifier-Signal:
| void | nameChanged(const QString &name) |
position : float
Speichert die Position der Animation.
Zugriffsfunktionen:
| float | position() const |
| void | setPosition(float position) |
Notifier-Signal:
| void | positionChanged(float position) |
Dokumentation der Mitgliedsfunktionen
[explicit] QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)
Erstellt eine `QAnimationGroup` mit ` parent`.
void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Fügt der Gruppe den neuen „ 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)
Weist der Gruppe die „ animations “ zu. Alte Animationen werden entfernt.
© 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.