• PySide 模块
  • PySide.QtCore
  • 内容表

    上一话题

    QPropertyAnimation

    下一话题

    QAnimationGroup

    QPauseAnimation

    注意

    该类在 Qt4.6 引入

    概要

    函数

    详细描述

    PySide.QtCore.QPauseAnimation class provides a pause for PySide.QtCore.QSequentialAnimationGroup .

    If you wish to introduce a delay between animations in a PySide.QtCore.QSequentialAnimationGroup , you can insert a PySide.QtCore.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 PySide.QtCore.QPauseAnimation.setDuration() .

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

    class PySide.QtCore. QPauseAnimation ( [ parent=None ] )
    class PySide.QtCore. QPauseAnimation ( msecs [ , parent=None ] )
    参数:

    构造 PySide.QtCore.QPauseAnimation . parent 会被传递给 PySide.QtCore.QObject ‘s constructor. The default duration is 0.

    构造 PySide.QtCore.QPauseAnimation . msecs is the duration of the pause. parent 会被传递给 PySide.QtCore.QObject ‘s constructor.

    PySide.QtCore.QPauseAnimation. setDuration ( msecs )
    参数: msecs PySide.QtCore.int

    This property holds the duration of the pause..

    The duration of the pause. The duration should not be negative. The default duration is 250 milliseconds.