QSequentialAnimationGroup Class | Qt 4.8 (original) (raw)
The QSequentialAnimationGroup class provides a sequential group of animations. More...
| Header: | #include |
|---|---|
| Since: | Qt 4.6 |
| Inherits: | QAnimationGroup |
Properties
- currentAnimation : QAbstractAnimation * const
- 6 properties inherited from QAbstractAnimation
- 1 property inherited from QObject
Public Functions
Reimplemented Public Functions
- 8 public functions inherited from QAnimationGroup
- 11 public functions inherited from QAbstractAnimation
- 29 public functions inherited from QObject
Signals
- 4 signals inherited from QAbstractAnimation
- 1 signal inherited from QObject
Reimplemented Protected Functions
| virtual bool | event(QEvent * event) |
|---|---|
| virtual void | updateCurrentTime(int currentTime) |
| virtual void | updateDirection(QAbstractAnimation::Direction direction) |
| virtual void | updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) |
- 1 protected function inherited from QAnimationGroup
- 4 protected functions inherited from QAbstractAnimation
- 8 protected functions inherited from QObject
Additional Inherited Members
- 6 public slots inherited from QAbstractAnimation
- 1 public slot inherited from QObject
- 7 static public members inherited from QObject
- 1 protected function inherited from QAnimationGroup
- 4 protected functions inherited from QAbstractAnimation
- 8 protected functions inherited from QObject
Detailed Description
The QSequentialAnimationGroup class provides a sequential group of animations.
QSequentialAnimationGroup is a QAnimationGroup that runs its animations in sequence, i.e., it starts one animation after another has finished playing. The animations are played in the order they are added to the group (using addAnimation() or insertAnimation()). The animation group finishes when its last animation has finished.
At each moment there is at most one animation that is active in the group; it is returned by currentAnimation(). An empty group has no current animation.
A sequential animation group can be treated as any other animation, i.e., it can be started, stopped, and added to other groups. You can also call addPause() or insertPause() to add a pause to a sequential animation group.
In this example, anim1 and anim2 are two already set up QPropertyAnimations.
See also QAnimationGroup, QAbstractAnimation, and The Animation Framework.
Property Documentation
currentAnimation : QAbstractAnimation * const
Returns the animation in the current time.
Access functions:
| QAbstractAnimation * | currentAnimation() const |
|---|
Notifier signal:
| void | currentAnimationChanged(QAbstractAnimation * current) |
|---|
See also currentAnimationChanged().
© 2016 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.