QPauseAnimation Class
The QPauseAnimation class provides a pause for QSequentialAnimationGroup. More…
| Header | #include <QPauseAnimation> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Core) |
| Module | Nt Core C++ Classes |
| Since | 4.6 |
| Inherits | QAbstractAnimation |
List of all members, including inherited members
Public Functions
| QPauseAnimation(QObject *parent = nullptr) | |
| QPauseAnimation(int msecs, QObject *parent = nullptr) | |
| ~QPauseAnimation() | |
| void | setDuration(int msecs) |
Reimplemented Public Functions
| int | duration() const |
Reimplemented Protected Functions
| bool | event(QEvent *event) |
| void | updateCurrentTime(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
QPauseAnimation::QPauseAnimation(QObject *parent = nullptr)
Constructs a pause of 250 milliseconds with the given parent.
QPauseAnimation::QPauseAnimation(int msecs, QObject *parent = nullptr)
Constructs a pause of msecs milliseconds with the given parent.
QPauseAnimation::~QPauseAnimation()
Destroys the pause.
int QPauseAnimation::duration() const
Reimplements QAbstractAnimation::duration().
Returns the length of the pause in milliseconds.
See also setDuration().
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().
void QPauseAnimation::updateCurrentTime(int currentTime)
Reimplements QAbstractAnimation::updateCurrentTime().