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

    上一话题

    QAnimationGroup

    下一话题

    QParallelAnimationGroup

    QSequentialAnimationGroup

    注意

    该类在 Qt4.6 引入

    概要

    函数

    信号

    详细描述

    PySide.QtCore.QSequentialAnimationGroup class provides a sequential group of animations.

    PySide.QtCore.QSequentialAnimationGroup PySide.QtCore.QAnimationGroup 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 (using PySide.QtCore.QAnimationGroup.addAnimation() or PySide.QtCore.QAnimationGroup.insertAnimation() ). 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 PySide.QtCore.QSequentialAnimationGroup.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 PySide.QtCore.QSequentialAnimationGroup.addPause() or PySide.QtCore.QSequentialAnimationGroup.insertPause() to add a pause to a sequential animation group.

    QSequentialAnimationGroup *group = new QSequentialAnimationGroup;
    group->addAnimation(anim1);
    group->addAnimation(anim2);
    group->start();
    									

    在此范例中, anim1 and anim2 are two already set up PySide.QtCore.QPropertyAnimation s.

    class PySide.QtCore. QSequentialAnimationGroup ( [ parent=None ] )
    参数: parent PySide.QtCore.QObject

    构造 PySide.QtCore.QSequentialAnimationGroup . parent 会被传递给 PySide.QtCore.QObject ‘s constructor.

    PySide.QtCore.QSequentialAnimationGroup. addPause ( msecs )
    参数: msecs PySide.QtCore.int
    返回类型: PySide.QtCore.QPauseAnimation

    Adds a pause of msecs to this animation group. The pause is considered as a special type of animation, thus PySide.QtCore.QAnimationGroup.animationCount() will be increased by one.

    PySide.QtCore.QSequentialAnimationGroup. currentAnimation ( )
    返回类型: PySide.QtCore.QAbstractAnimation

    Returns the animation in the current time.

    PySide.QtCore.QSequentialAnimationGroup. currentAnimationChanged ( current )
    参数: current PySide.QtCore.QAbstractAnimation
    PySide.QtCore.QSequentialAnimationGroup. insertPause ( index , msecs )
    参数:
    • index PySide.QtCore.int
    • msecs PySide.QtCore.int
    返回类型:

    PySide.QtCore.QPauseAnimation

    Inserts a pause of msecs milliseconds at index in this animation group.