QParallelAnimationGroup Class
The QParallelAnimationGroup class provides a parallel group of animations. More...
Header: | #include <QParallelAnimationGroup> |
qmake: | QT += core |
Since: | Qt 4.6 |
Inherits: | QAnimationGroup |
This class was introduced in Qt 4.6.
Public Functions
QParallelAnimationGroup(QObject *parent = nullptr) | |
virtual | ~QParallelAnimationGroup() |
Reimplemented Public Functions
virtual int | duration() const override |
- 8 public functions inherited from QAnimationGroup
- 11 public functions inherited from QAbstractAnimation
- 31 public functions inherited from QObject
Reimplemented Protected Functions
virtual bool | event(QEvent *event) override |
virtual void | updateCurrentTime(int currentTime) override |
virtual void | updateDirection(QAbstractAnimation::Direction direction) override |
virtual void | updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override |
- 1 protected function inherited from QAnimationGroup
- 4 protected functions inherited from QAbstractAnimation
- 9 protected functions inherited from QObject
Related Non-Members
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 6 properties inherited from QAbstractAnimation
- 1 property inherited from QObject
- 6 public slots inherited from QAbstractAnimation
- 1 public slot inherited from QObject
- 4 signals inherited from QAbstractAnimation
- 2 signals inherited from QObject
- 10 static public members inherited from QObject
- 1 protected function inherited from QAnimationGroup
- 4 protected functions inherited from QAbstractAnimation
- 9 protected functions inherited from QObject
Detailed Description
QParallelAnimationGroup--a container for animations--starts all its animations when it is started itself, i.e., runs all animations in parallel. The animation group finishes when the longest lasting animation has finished.
You can treat QParallelAnimationGroup as any other QAbstractAnimation, e.g., pause, resume, or add it to other animation groups.
QParallelAnimationGroup *group = new QParallelAnimationGroup; group->addAnimation(anim1); group->addAnimation(anim2); group->start();
In this example, anim1
and anim2
are two QPropertyAnimations that have already been set up.
See also QAnimationGroup, QPropertyAnimation, and The Animation Framework.
Member Function Documentation
QParallelAnimationGroup::QParallelAnimationGroup(QObject *parent = nullptr)
Constructs a QParallelAnimationGroup. parent is passed to QObject's constructor.
[virtual]
QParallelAnimationGroup::~QParallelAnimationGroup()
Destroys the animation group. It will also destroy all its animations.
[override virtual]
int QParallelAnimationGroup::duration() const
Reimplements: QAbstractAnimation::duration() const.
[override virtual protected]
bool QParallelAnimationGroup::event(QEvent *event)
Reimplements: QAnimationGroup::event(QEvent *event).
[override virtual protected]
void QParallelAnimationGroup::updateCurrentTime(int currentTime)
Reimplements: QAbstractAnimation::updateCurrentTime(int currentTime).
[override virtual protected]
void QParallelAnimationGroup::updateDirection(QAbstractAnimation::Direction direction)
Reimplements: QAbstractAnimation::updateDirection(QAbstractAnimation::Direction direction).
[override virtual protected]
void QParallelAnimationGroup::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
Reimplements: QAbstractAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState).