内容表

上一话题

QParallelAnimationGroup

下一话题

QPersistentModelIndex

QPauseAnimation

Inheritance diagram of PySide2.QtCore.QPauseAnimation

4.6 版新增。

概要

函数

详细描述

If you wish to introduce a delay between animations in a QSequentialAnimationGroup , you can insert a QPauseAnimation . This class does not animate anything, but does not finish before 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 with setDuration() .

It is not necessary to construct a QPauseAnimation yourself. QSequentialAnimationGroup provides the convenience functions addPause() and insertPause() . These functions simply take the number of milliseconds the pause should last.

class QPauseAnimation ( [ parent=None ] )

QPauseAnimation(msecs[, parent=None])

param parent

QObject

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()