QSequentialAnimationGroupclass provides a sequential group of animations. 更多 …
4.6 版新增。
def
addPause
(msecs)
def
currentAnimation
()
def
insertPause
(index, msecs)
def
currentAnimationChanged
(current)
QSequentialAnimationGroup是QAnimationGroupthat 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();在此范例中,
anim1andanim2are two already set upQPropertyAnimations.
QSequentialAnimationGroup
(
[
parent=None
]
)
¶
- param parent
构造
QSequentialAnimationGroup
.
parent
会被传递给
QObject
‘s constructor.
PySide2.QtCore.QSequentialAnimationGroup.
addPause
(
msecs
)
¶
msecs
–
int
Adds a pause of
msecs
to this animation group. The pause is considered as a special type of animation, thus
animationCount
will be increased by one.
另请参阅
insertPause()
addAnimation()
PySide2.QtCore.QSequentialAnimationGroup.
currentAnimation
(
)
¶
PySide2.QtCore.QSequentialAnimationGroup.
currentAnimationChanged
(
current
)
¶
current
–
QAbstractAnimation
PySide2.QtCore.QSequentialAnimationGroup.
insertPause
(
index
,
msecs
)
¶
index
–
int
msecs
–
int
Inserts a pause of
msecs
milliseconds at
index
in this animation group.
另请参阅
addPause()
insertAnimation()