Qt3DAnimation::QAnimationGroup Class
class Qt3DAnimation::QAnimationGroupUma classe que agrupa animações. Mais...
| Cabeçalho: | #include <QAnimationGroup> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| Herdado de: | QObject |
| Status: | Pré-visualização tecnológica |
Esta classe está em pré-visualização tecnológica e está sujeita a alterações.
Propriedades
Funções públicas
| 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) |
Slots públicos
| void | setName(const QString &name) |
| void | setPosition(float position) |
Sinais
| void | durationChanged(float duration) |
| void | nameChanged(const QString &name) |
| void | positionChanged(float position) |
Descrição detalhada
Qt3DAnimation::QAnimationGroup A classe é usada para agrupar várias animações, de modo que elas possam atuar como uma única animação. A posição definida para o grupo também é aplicada a todas as animações do grupo. A duração é a maior entre as durações das animações individuais. As animações podem ser de qualquer tipo compatível e não precisam ter o mesmo nome.
Documentação das propriedades
[read-only] duration : float
Armazena a duração máxima das animações do grupo.
Funções de acesso:
| float | duration() const |
Sinal do Notifier:
| void | durationChanged(float duration) |
name : QString
Contém o nome do grupo de animação.
Funções de acesso:
| QString | name() const |
| void | setName(const QString &name) |
Sinal do Notifier:
| void | nameChanged(const QString &name) |
position : float
Mantém a posição da animação.
Funções de acesso:
| float | position() const |
| void | setPosition(float position) |
Sinal do Notifier:
| void | positionChanged(float position) |
Documentação das funções de membro
[explicit] QAnimationGroup::QAnimationGroup(QObject *parent = nullptr)
Cria um `QAnimationGroup` com ` parent`.
void QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Adiciona o novo animation ao grupo.
QList<Qt3DAnimation::QAbstractAnimation *> QAnimationGroup::animationList()
Retorna a lista de animações do grupo.
void QAnimationGroup::removeAnimation(Qt3DAnimation::QAbstractAnimation *animation)
Remove “ animation ” do grupo.
void QAnimationGroup::setAnimations(const QList<Qt3DAnimation::QAbstractAnimation *> &animations)
Define o “ animations ” para o grupo. As animações antigas são removidas.
© 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.