45 #include <QtCore/qeasingcurve.h> 46 #include <QtCore/qobject.h> 89 int loopCount()
const;
90 void setLoopCount(
int count);
96 void setDuration(
int duration);
98 int startFrame()
const;
99 void setStartFrame(
int frame);
100 int endFrame()
const;
101 void setEndFrame(
int frame);
102 void setFrameRange(
int startFrame,
int endFrame);
104 int updateInterval()
const;
105 void setUpdateInterval(
int interval);
113 int currentTime()
const;
114 int currentFrame()
const;
115 qreal currentValue()
const;
117 int frameForTime(
int msec)
const;
118 virtual qreal valueForTime(
int msec)
const;
124 void setPaused(
bool paused);
125 void setCurrentTime(
int msec);
126 void toggleDirection();
129 void valueChanged(
qreal x);
130 void frameChanged(
int);
int currentTime
the current time of the time line.
Direction direction
the direction of the timeline when QTimeLine is in Running state.
#define QT_END_NAMESPACE
This macro expands to.
QEasingCurve easingCurve
Specifies the easing curve that the timeline will use.
The QEasingCurve class provides easing curves for controlling animation.
CurveShape
This enum describes the default shape of QTimeLine's value curve.
virtual void timerEvent(QTimerEvent *)
This event handler can be reimplemented in a subclass to receive timer events for the object...
CurveShape curveShape
the shape of the timeline curve.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
State
This enum describes the state of the timeline.
The QObject class is the base class of all Qt objects.
int duration
the total duration of the timeline in milliseconds.
The QTimeLine class provides a timeline for controlling animations.
#define QT_BEGIN_NAMESPACE
This macro expands to.
Direction
This enum describes the direction of the timeline when in Running state.
The State element defines configurations of objects and properties.
The QTimerEvent class contains parameters that describe a timer event.
int updateInterval
the time in milliseconds between each time QTimeLine updates its current time.
#define Q_DECLARE_PRIVATE(Class)
int loopCount
the number of times the timeline should loop before it's finished.
Qt::LayoutDirection direction