QParallelAnimationGroup Class Reference

[ QtCore module]

The QParallelAnimationGroup class provides a parallel group of animations. 更多...

继承 QAnimationGroup .

方法


详细描述

The QParallelAnimationGroup class provides a parallel group of animations.

QParallelAnimationGroup--a container for animations --starts all its animations when it is started itself, i.e., runs all animations in parallel. The animation group finishes when the longest lasting animation has finished.

You can treat QParallelAnimation as any other QAbstractAnimation , e.g., pause, resume, or add it to other animation groups.

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

在此范例中, anim1 and anim2 are two QPropertyAnimation s that have already been set up.


方法文档编制

QParallelAnimationGroup.__init__ ( self , QObject   parent  = None)

parent argument, if not None, causes self to be owned by Qt instead of PyQt.

构造 QParallelAnimationGroup . parent 会被传递给 QObject 's 构造函数。

int QParallelAnimationGroup.duration ( self )

重实现自 QAbstractAnimation.duration ().

bool QParallelAnimationGroup.event ( self , QEvent   event )

重实现自 QObject.event ().

QParallelAnimationGroup.updateCurrentTime ( self , int  currentTime )

重实现自 QAbstractAnimation.updateCurrentTime ().

QParallelAnimationGroup.updateDirection ( self , QAbstractAnimation.Direction   direction )

重实现自 QAbstractAnimation.updateDirection ().

QParallelAnimationGroup.updateState ( self , QAbstractAnimation.State   newState , QAbstractAnimation.State   oldState )

重实现自 QAbstractAnimation.updateState ().