Qt3DAnimation::QAnimationGroup Class
class Qt3DAnimation::QAnimationGroupUna classe che raggruppa le animazioni. Per saperne di più...
| Intestazione: | #include <QAnimationGroup> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| Eredita da: | QObject |
| Stato: | Anteprima tecnologica |
Questa classe è in anteprima tecnologica ed è soggetta a modifiche.
Proprietà
Funzioni pubbliche
| 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) |
Slot pubblici
| void | setName(const QString &name) |
| void | setPosition(float position) |
Segnali
| void | durationChanged(float duration) |
| void | nameChanged(const QString &name) |
| void | positionChanged(float position) |
Descrizione dettagliata
Qt3DAnimation::QAnimationGroup La classe viene utilizzata per raggruppare più animazioni in modo che possano agire come un'unica animazione. La posizione impostata per il gruppo viene applicata anche a tutte le animazioni presenti nel gruppo. La durata corrisponde al valore massimo delle singole animazioni. Le animazioni possono essere di qualsiasi tipo supportato e non è necessario che abbiano lo stesso nome.
Documentazione delle proprietà
[read-only] duration : float
Contiene la durata massima delle animazioni del gruppo.
Funzioni di accesso:
| float | duration() const |
Segnale di notifica:
| void | durationChanged(float duration) |
name : QString
Contiene il nome del gruppo di animazione.
Funzioni di accesso:
| QString | name() const |
| void | setName(const QString &name) |
Segnale di notifica:
| void | nameChanged(const QString &name) |
position : float
Memorizza la posizione dell'animazione.
Funzioni di accesso:
| float | position() const |
| void | setPosition(float position) |
Segnale di notifica:
| void | positionChanged(float position) |
Documentazione delle funzioni membro
[explicit] QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)
Crea un oggetto `QAnimationGroup` con ` parent`.
void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Aggiunge il nuovo animation al gruppo.
QList<Qt3DAnimation::QAbstractAnimation *> QAnimationGroup::animationList()
Restituisce l'elenco delle animazioni presenti nel gruppo.
void QAnimationGroup::removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Rimuove animation dal gruppo.
void QAnimationGroup::setAnimations(const QList<Qt3DAnimation::QAbstractAnimation *> &animations)
Assegna l'animations e al gruppo. Le vecchie animazioni vengono rimosse.
© 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.