QParallelAnimationGroup 类

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

头: #include <QParallelAnimationGroup>
qmake: QT += core
Since: Qt 4.6
继承: QAnimationGroup

公共函数

QParallelAnimationGroup (QObject * parent = Q_NULLPTR)
~QParallelAnimationGroup ()

重实现公共函数

virtual int duration () const

重实现保护函数

virtual bool event (QEvent * event )
virtual void updateCurrentTime (int currentTime )
virtual void updateDirection (QAbstractAnimation::Direction direction )
virtual void updateState (QAbstractAnimation::State newState , QAbstractAnimation::State oldState )

额外继承成员

详细描述

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 QParallelAnimationGroup 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.

另请参阅 QAnimationGroup , QPropertyAnimation ,和 动画框架 .

成员函数文档编制

QParallelAnimationGroup:: QParallelAnimationGroup ( QObject * parent = Q_NULLPTR)

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

QParallelAnimationGroup:: ~QParallelAnimationGroup ()

Destroys the animation group. It will also destroy all its animations.

[虚拟] int QParallelAnimationGroup:: duration () const

重实现自 QAbstractAnimation::duration ().

[virtual protected] bool QParallelAnimationGroup:: event ( QEvent * event )

重实现自 QObject::event ().

[virtual protected] void QParallelAnimationGroup:: updateCurrentTime ( int currentTime )

重实现自 QAbstractAnimation::updateCurrentTime ().

[virtual protected] void QParallelAnimationGroup:: updateDirection ( QAbstractAnimation::Direction direction )

重实现自 QAbstractAnimation::updateDirection ().

[virtual protected] void QParallelAnimationGroup:: updateState ( QAbstractAnimation::State newState , QAbstractAnimation::State oldState )

重实现自 QAbstractAnimation::updateState ().