QSequentialAnimationGroup¶
The
QSequentialAnimationGroup
class provides a sequential group of animations. More…
New in version 4.6.
Synopsis¶
Functions¶
def
addPause
(msecs)def
currentAnimation
()def
insertPause
(index, msecs)
Signals¶
def
currentAnimationChanged
(current)
Detailed Description¶
QSequentialAnimationGroup
is aQAnimationGroup
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 (usingaddAnimation()
orinsertAnimation()
). 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()
orinsertPause()
to add a pause to a sequential animation group.QSequentialAnimationGroup *group = new QSequentialAnimationGroup; group->addAnimation(anim1); group->addAnimation(anim2); group->start();In this example,
anim1
andanim2
are two already set upQPropertyAnimation
s.
- class PySide2.QtCore.QSequentialAnimationGroup([parent=None])¶
- param parent:
Constructs a
QSequentialAnimationGroup
.parent
is passed toQObject
‘s constructor.
- PySide2.QtCore.QSequentialAnimationGroup.addPause(msecs)¶
- Parameters:
msecs – int
- Return type:
Adds a pause of
msecs
to this animation group. The pause is considered as a special type of animation, thusanimationCount
will be increased by one.See also
insertPause()
addAnimation()
- PySide2.QtCore.QSequentialAnimationGroup.currentAnimation()¶
- Return type:
Returns the animation in the current time.
- PySide2.QtCore.QSequentialAnimationGroup.currentAnimationChanged(current)¶
- Parameters:
current –
PySide2.QtCore.QAbstractAnimation
- PySide2.QtCore.QSequentialAnimationGroup.insertPause(index, msecs)¶
- Parameters:
index – int
msecs – int
- Return type:
Inserts a pause of
msecs
milliseconds atindex
in this animation group.See also
addPause()
insertAnimation()
© 2022 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.