Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QPauseAnimation Class

The QPauseAnimation class provides a pause for QSequentialAnimationGroup. More...

 #include <QPauseAnimation>

Inherits: QAbstractAnimation.

This class was introduced in Qt 4.6.

Public Types

enum DeletionPolicy { KeepWhenStopped, DeleteWhenStopped }
enum Direction { Forward, Backward }
enum State { Stopped, Paused, Running }

Properties

  • 1 property inherited from QObject

Public Functions

QAbstractAnimation(QObject * parent = 0)
QPauseAnimation(QObject * parent = 0)
QPauseAnimation(int msecs, QObject * parent = 0)
virtual ~QAbstractAnimation()
~QPauseAnimation()
int currentLoop() const
int currentLoopTime() const
int currentTime() const
Direction direction() const
virtual int duration() const = 0
QAnimationGroup * group() const
int loopCount() const
void setDirection(Direction direction)
void setDuration(int msecs)
void setLoopCount(int loopCount)
State state() const
int totalDuration() const

Reimplemented Public Functions

virtual int duration() const
  • 31 public functions inherited from QObject

Public Slots

void pause()
void resume()
void setCurrentTime(int msecs)
void setPaused(bool paused)
void start(QAbstractAnimation::DeletionPolicy policy = KeepWhenStopped)
void stop()
  • 1 public slot inherited from QObject

Signals

void currentLoopChanged(int currentLoop)
void directionChanged(QAbstractAnimation::Direction newDirection)
void finished()
void stateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)

Protected Functions

virtual bool event(QEvent * event)
virtual void updateCurrentTime(int currentTime) = 0
virtual void updateDirection(QAbstractAnimation::Direction direction)
virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)

Reimplemented Protected Functions

virtual bool event(QEvent * e)
virtual void updateCurrentTime(int)
  • 9 protected functions inherited from QObject

Additional Inherited Members

  • 11 static public members inherited from QObject

Detailed Description

The QPauseAnimation class provides a pause for QSequentialAnimationGroup.

If you wish to introduce a delay between animations in a QSequentialAnimationGroup, you can insert a QPauseAnimation. This class does not animate anything, but does not finish before a specified number of milliseconds have elapsed from when it was started. You specify the duration of the pause in the constructor. It can also be set directly with setDuration().

It is not necessary to construct a QPauseAnimation yourself. QSequentialAnimationGroup provides the convenience functions addPause() and insertPause(). These functions simply take the number of milliseconds the pause should last.

See also QSequentialAnimationGroup.

Property Documentation

duration : int

This property holds the duration of the pause.

The duration of the pause. The duration should not be negative. The default duration is 250 milliseconds.

Access functions:

virtual int duration() const
void setDuration(int msecs)

Member Function Documentation

QPauseAnimation::QPauseAnimation(QObject * parent = 0)

Constructs a QPauseAnimation. parent is passed to QObject's constructor. The default duration is 0.

QPauseAnimation::QPauseAnimation(int msecs, QObject * parent = 0)

Constructs a QPauseAnimation. msecs is the duration of the pause. parent is passed to QObject's constructor.

QPauseAnimation::~QPauseAnimation()

Destroys the pause animation.

bool QPauseAnimation::event(QEvent * e) [virtual protected]

Reimplemented from QObject::event().

void QPauseAnimation::updateCurrentTime(int) [virtual protected]

Reimplemented from QAbstractAnimation::updateCurrentTime().

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web