QPauseAnimationclass provides a pause forQSequentialAnimationGroup. 更多 …
4.6 版新增。
def
setDuration
(msecs)
If you wish to introduce a delay between animations in a
QSequentialAnimationGroup, you can insert aQPauseAnimation. This class does not animate anything, but does notfinishbefore a specified number of milliseconds have elapsed from when it was started. You specify the duration of the pause in the constructor. It can also be set directly withsetDuration().It is not necessary to construct a
QPauseAnimationyourself.QSequentialAnimationGroupprovides the convenience functionsaddPause()andinsertPause(). These functions simply take the number of milliseconds the pause should last.
QPauseAnimation
(
[
parent=None
]
)
¶
QPauseAnimation(msecs[, parent=None])
- param parent
- param msecs
int
构造
QPauseAnimation
.
parent
会被传递给
QObject
‘s constructor. The default duration is 0.
构造
QPauseAnimation
.
msecs
is the duration of the pause.
parent
会被传递给
QObject
‘s constructor.
PySide2.QtCore.QPauseAnimation.
setDuration
(
msecs
)
¶
msecs
–
int
另请参阅
duration()