Qt3DAnimation::QAnimationGroup Class
class Qt3DAnimation::QAnimationGroupUne classe regroupant des animations. En savoir plus...
| En-tête : | #include <QAnimationGroup> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake : | QT += 3danimation |
| Hérite de : | QObject |
| Statut : | Aperçu technologique |
Cette classe est en avant-première technologique et est susceptible d'être modifiée.
Propriétés
Fonctions publiques
| 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) |
Emplacements publics
| void | setName(const QString &name) |
| void | setPosition(float position) |
Signaux
| void | durationChanged(float duration) |
| void | nameChanged(const QString &name) |
| void | positionChanged(float position) |
Description détaillée
Qt3DAnimation::QAnimationGroup La classe permet de regrouper plusieurs animations afin qu'elles agissent comme une seule animation. La position définie pour le groupe s'applique également à toutes les animations du groupe. La durée correspond à la durée maximale des animations individuelles. Les animations peuvent être de n'importe quel type pris en charge et ne doivent pas nécessairement porter le même nom.
Documentation des propriétés
[read-only] duration : float
Contient la durée maximale des animations du groupe.
Fonctions d'accès :
| float | duration() const |
Signal de notification :
| void | durationChanged(float duration) |
name : QString
Contient le nom du groupe d'animation.
Fonctions d'accès :
| QString | name() const |
| void | setName(const QString &name) |
Signal de notification :
| void | nameChanged(const QString &name) |
position : float
Conserve la position de l'animation.
Fonctions d'accès :
| float | position() const |
| void | setPosition(float position) |
Signal de notification :
| void | positionChanged(float position) |
Documentation des fonctions membres
[explicit] QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)
Crée un objet `QAnimationGroup` à l'aide de ` parent`.
void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Ajoute une nouvelle « animation » au groupe.
QList<Qt3DAnimation::QAbstractAnimation *> QAnimationGroup::animationList()
Renvoie la liste des animations du groupe.
void QAnimationGroup::removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Supprime « animation » du groupe.
void QAnimationGroup::setAnimations(const QList<Qt3DAnimation::QAbstractAnimation *> &animations)
Attribue l'animations au groupe. Les anciennes animations sont supprimées.
© 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.