QTimeLine

#include <QtCore/QTimeLine>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QTimeLine


Overview

Public Types Index

Public Functions Index

QTimeLine (int duration=1000, QObject *parent=0)
virtual ~QTimeLine ()
intcurrentFrame () const
intcurrentTime () const
qrealcurrentValue () const
CurveShapecurveShape () const
Directiondirection () const
intduration () const
QEasingCurveeasingCurve () const
intendFrame () const
intframeForTime (int msec) const
intloopCount () const
voidsetCurveShape (CurveShape shape)
voidsetDirection (Direction direction)
voidsetDuration (int duration)
voidsetEasingCurve (const QEasingCurve &curve)
voidsetEndFrame (int frame)
voidsetFrameRange (int startFrame, int endFrame)
voidsetLoopCount (int count)
voidsetStartFrame (int frame)
voidsetUpdateInterval (int interval)
intstartFrame () const
Statestate () const
intupdateInterval () const
virtual qrealvalueForTime (int msec) const

Protected Functions Index

virtual voidtimerEvent (QTimerEvent *event)

Public Slots Index

voidresume ()
voidsetCurrentTime (int msec)
voidsetPaused (bool paused)
voidstart ()
voidstop ()
voidtoggleDirection ()

Signals Index

voidfinished ()
voidframeChanged (int)
voidstateChanged (QTimeLine::State newState)
voidvalueChanged (qreal x)

Public Types

CurveShape

EaseInCurve
EaseOutCurve
EaseInOutCurve
LinearCurve
SineCurve
CosineCurve

Direction

Forward
Backward

State

NotRunning
Paused
Running

Properties

int currentTime

CurveShape curveShape

Direction direction

int duration

QEasingCurve easingCurve

int loopCount

int updateInterval

Public Functions

QTimeLine (

virtual~QTimeLine ()

Destructor.

int currentFrame ()

int currentTime ()

qreal currentValue ()

CurveShape curveShape ()

Direction direction ()

int duration ()

QEasingCurve easingCurve ()

int endFrame ()

int frameForTime (
  • intmsec)

int loopCount ()

void setCurveShape (
  • CurveShapeshape)

void setDirection (
  • Directiondirection)

void setDuration (
  • intduration)

void setEasingCurve (

void setEndFrame (
  • intframe)

void setFrameRange (
  • intstartFrame,
  • intendFrame )

void setLoopCount (
  • intcount)

void setStartFrame (
  • intframe)

void setUpdateInterval (
  • intinterval)

int startFrame ()

State state ()

int updateInterval ()

virtual qreal valueForTime (
  • intmsec)

Protected Functions

virtual void timerEvent (

Public Slots

void resume ()

void setCurrentTime (
  • intmsec)

void setPaused (
  • boolpaused)

void start ()

void stop ()

void toggleDirection ()

Signals

void finished ()

void frameChanged (
  • int)

void stateChanged (
  • QTimeLine::StatenewState)

void valueChanged (
  • qrealx)

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus