Qt3DAnimation::QAnimationGroup Class
class Qt3DAnimation::QAnimationGroupUne classe regroupant les animations. Plus d'informations...
| En-tête : | #include <QAnimationGroup> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3danimation)target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake : | QT += 3danimation |
| Hérite : | QObject |
| Statut : | Déclassé |
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 Cette classe permet de regrouper plusieurs animations de manière à ce qu'elles agissent comme une seule animation. La position définie pour le groupe est également définie pour 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 sur les propriétés
[read-only] duration : float
Détient 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
Maintient la position de l'animation.
Fonctions d'accès :
| float | position() const |
| void | setPosition(float position) |
Signal du notificateur :
| void | positionChanged(float position) |
Member Function Documentation
[explicit] QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)
Construit un QAnimationGroup avec parent.
void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Ajoute de nouveaux 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)
Définit l'adresse animations pour le 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.