QVariantAnimation

#include <QtCore/QVariantAnimation>

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


Overview

Inheritance

Public Types Index

QVariant(*Interpolator
QPair< qreal, QVariant >KeyValue
QVector< KeyValue >KeyValues

enum DeletionPolicy

KeepWhenStopped 0, DeleteWhenStopped

enum Direction

Forward, Backward

enum State

Stopped, Paused, Running

Properties Index

QVariantcurrentValue [read-only]
intduration
QEasingCurveeasingCurve
QVariantendValue
QVariantstartValue
intcurrentLoop [read-only]Inherited
intcurrentTimeInherited
DirectiondirectionInherited
intloopCountInherited
Statestate [read-only]Inherited

Public Functions Index

QVariantAnimation (QObject *parent=0)
~QVariantAnimation ()
QVariantcurrentValue () const
virtual intduration () const
QEasingCurveeasingCurve () const
QVariantendValue () const
QVariantkeyValueAt (qreal step) const
KeyValueskeyValues () const
voidsetDuration (int msecs)
voidsetEasingCurve (const QEasingCurve &easing)
voidsetEndValue (const QVariant &value)
voidsetKeyValueAt (qreal step, const QVariant &value)
voidsetKeyValues (const KeyValues &values)
voidsetStartValue (const QVariant &value)
QVariantstartValue () const
intcurrentLoop () const Inherited
intcurrentLoopTime () const Inherited
intcurrentTime () const Inherited
Directiondirection () const Inherited
QAnimationGroup *group () const Inherited
intloopCount () const Inherited
QAbstractAnimation (QObject *parent=0)Inherited
voidsetDirection (Direction direction)Inherited
voidsetLoopCount (int loopCount)Inherited
Statestate () const Inherited
inttotalDuration () const Inherited

Protected Functions Index

QVariantAnimation (QVariantAnimationPrivate &dd, QObject *parent=0)
virtual boolevent (QEvent *event)
virtual QVariantinterpolated (const QVariant &from, const QVariant &to, qreal progress) const
virtual voidupdateCurrentTime (int)
voidupdateCurrentValue (const QVariant &value)=0
virtual voidupdateState (QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
QAbstractAnimation (QAbstractAnimationPrivate &dd, QObject *parent=0)Inherited
virtual voidupdateDirection (QAbstractAnimation::Direction direction)Inherited

Public Slots Index

Only has inherited public slots

voidpause ()Inherited
voidresume ()Inherited
voidsetCurrentTime (int msecs)Inherited
voidsetPaused (bool)Inherited
voidstart (QAbstractAnimation::DeletionPolicy policy=KeepWhenStopped)Inherited
voidstop ()Inherited

Signals Index

voidvalueChanged (const QVariant &value)
voidcurrentLoopChanged (int currentLoop)Inherited
voiddirectionChanged (QAbstractAnimation::Direction)Inherited
voidfinished ()Inherited
voidstateChanged (QAbstractAnimation::State newState, QAbstractAnimation::State oldState)Inherited

Public Types

typedef QVariant(* Interpolator

typedef QPair< qreal, QVariant > KeyValue

typedef QVector< KeyValue > KeyValues

DeletionPolicy Inherited

KeepWhenStopped 0
DeleteWhenStopped

Direction Inherited

Forward
Backward

State Inherited

Stopped
Paused
Running

Properties

QVariant currentValue[read-only]

int duration

QEasingCurve easingCurve

QVariant endValue

QVariant startValue

int currentLoopInherited[read-only]

int currentTimeInherited

Direction directionInherited

int loopCountInherited

State stateInherited[read-only]

Public Functions

QVariantAnimation (

~QVariantAnimation ()

Destructor.

QVariant currentValue ()

virtual int duration ()

QEasingCurve easingCurve ()

QVariant endValue ()

QVariant keyValueAt (
  • qrealstep)

KeyValues keyValues ()

void setDuration (
  • intmsecs)

void setEasingCurve (

void setEndValue (

void setKeyValueAt (

void setKeyValues (

void setStartValue (

QVariant startValue ()

int currentLoop ()Inherited

int currentLoopTime ()Inherited

int currentTime ()Inherited

Direction direction ()Inherited

QAnimationGroup * group ()Inherited

int loopCount ()Inherited

QAbstractAnimation (Inherited

void setDirection (
  • Directiondirection)
Inherited

void setLoopCount (
  • intloopCount)
Inherited

State state ()Inherited

int totalDuration ()Inherited

Protected Functions

QVariantAnimation (
  • QVariantAnimationPrivate &dd,
  • QObject *parent )

virtual bool event (

virtualQVariant interpolated (

virtual void updateCurrentTime (
  • int)

void updateCurrentValue (

virtual void updateState (
  • QAbstractAnimation::StatenewState,
  • QAbstractAnimation::StateoldState )

QAbstractAnimation (
  • QAbstractAnimationPrivate &dd,
  • QObject *parent )
Inherited

virtual void updateDirection (
  • QAbstractAnimation::Directiondirection)
Inherited

Public Slots

(Only has inherited public slots)

void pause ()Inherited

void resume ()Inherited

void setCurrentTime (
  • intmsecs)
Inherited

void setPaused (
  • bool)
Inherited

void start (
  • QAbstractAnimation::DeletionPolicypolicy)
Inherited

void stop ()Inherited

Signals

void valueChanged (

void currentLoopChanged (
  • intcurrentLoop)
Inherited

void directionChanged (
  • QAbstractAnimation::Direction)
Inherited

void finished ()Inherited

void stateChanged (
  • QAbstractAnimation::StatenewState,
  • QAbstractAnimation::StateoldState )
Inherited

Last modified: 2015-07-24



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

comments powered by Disqus