6.0.0-rc4Source

QPauseAnimation Class

The QPauseAnimation class provides a pause for QSequentialAnimationGroup. More…

Header#include <QPauseAnimation>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes
Since4.6
InheritsQAbstractAnimation

List of all members, including inherited members

Public Functions

QPauseAnimation(QObject *parent = nullptr)
QPauseAnimation(int msecs, QObject *parent = nullptr)
~QPauseAnimation()
voidsetDuration(int msecs)

Reimplemented Public Functions

intduration() const

Reimplemented Protected Functions

boolevent(QEvent *event)
voidupdateCurrentTime(int currentTime)

Detailed Description

A pause is an animation that does nothing for its duration. Put one into a sequential group to let time pass between two animations; QSequentialAnimationGroup::addPause() does that in one call.

See also QSequentialAnimationGroup.

Differences from Qt

The duration is not a bindable property.

Member Function Documentation

[explicit] QPauseAnimation::QPauseAnimation(QObject *parent = nullptr)

Constructs a pause of 250 milliseconds with the given parent.

[explicit] QPauseAnimation::QPauseAnimation(int msecs, QObject *parent = nullptr)

Constructs a pause of msecs milliseconds with the given parent.

[override] QPauseAnimation::~QPauseAnimation()

Destroys the pause.

[override] int QPauseAnimation::duration() const

Reimplements QAbstractAnimation::duration().

Returns the length of the pause in milliseconds.

See also setDuration().

[override, protected] bool QPauseAnimation::event(QEvent *event)

Reimplements QAbstractAnimation::event().

void QPauseAnimation::setDuration(int msecs)

Sets the length of the pause to msecs milliseconds, which must not be negative.

See also duration().

[override, protected] void QPauseAnimation::updateCurrentTime(int currentTime)

Reimplements QAbstractAnimation::updateCurrentTime().