56 #include <QtCore/qpropertyanimation.h>
74 qWarning(
"Unknown pathType %d", pathType);
93 if (easedProgress > 1.0) {
95 }
else if (easedProgress < 0) {
void setPathType(PathType pathType)
Animation(QObject *target, const QByteArray &prop)
void updateCurrentTime(int currentTime) override
int currentTime
the current time and progress of the animation
The QByteArray class provides an array of bytes.
qreal valueForProgress(qreal progress) const
The QObject class is the base class of all Qt objects.
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
void moveTo(const QPointF &p)
void addEllipse(const QRectF &rect)
QPointF pointAtPercent(qreal t) const
The QPointF class defines a point in the plane using floating point precision.
The QPropertyAnimation class animates Qt properties.
void updateCurrentValue(const QVariant &value) override
The QRectF class defines a finite rectangle in the plane using floating point precision.
int duration
the duration of the animation
QEasingCurve easingCurve
the easing curve of the animation
void valueChanged(const QVariant &value)
QVariant startValue
the optional start value of the animation
void updateCurrentTime(int) override
QVariant endValue
the end value of the animation
QT_END_INCLUDE_NAMESPACE typedef double qreal