QMovie Class Reference

#include <qmovie.h>

Class Description

Definition at line 74 of file qmovie.h.

+ Inheritance diagram for QMovie:

Public Types

enum  MovieState { NotRunning, Paused, Running }
 
enum  CacheMode { CacheNone, CacheAll }
 

Public Slots

void start ()
 
bool jumpToNextFrame ()
 
void setPaused (bool paused)
 
void stop ()
 
void setSpeed (int percentSpeed)
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void started ()
 
void resized (const QSize &size)
 
void updated (const QRect &rect)
 
void stateChanged (QMovie::MovieState state)
 
void error (QImageReader::ImageReaderError error)
 
void finished ()
 
void frameChanged (int frameNumber)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QMovie (QObject *parent=0)
 
 QMovie (QIODevice *device, const QByteArray &format=QByteArray(), QObject *parent=0)
 
 QMovie (const QString &fileName, const QByteArray &format=QByteArray(), QObject *parent=0)
 
 ~QMovie ()
 
void setDevice (QIODevice *device)
 
QIODevicedevice () const
 
void setFileName (const QString &fileName)
 
QString fileName () const
 
void setFormat (const QByteArray &format)
 
QByteArray format () const
 
void setBackgroundColor (const QColor &color)
 
QColor backgroundColor () const
 
MovieState state () const
 
QRect frameRect () const
 
QImage currentImage () const
 
QPixmap currentPixmap () const
 
bool isValid () const
 
bool jumpToFrame (int frameNumber)
 
int loopCount () const
 
int frameCount () const
 
int nextFrameDelay () const
 
int currentFrameNumber () const
 
int speed () const
 
QSize scaledSize ()
 
void setScaledSize (const QSize &size)
 
CacheMode cacheMode () const
 
void setCacheMode (CacheMode mode)
 
CacheMode cacheMode ()
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Static Public Member Functions

static QList< QByteArraysupportedFormats ()
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 

Properties

int speed
 
CacheMode cacheMode
 
- Properties inherited from QObject
QString objectName
 

Additional Inherited Members

- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Member Enumeration Documentation

enum MovieState
Enumerator
NotRunning 
Paused 
Running 

Definition at line 82 of file qmovie.h.

82  {
83  NotRunning,
84  Paused,
85  Running
86  };
enum CacheMode
Enumerator
CacheNone 
CacheAll 

Definition at line 87 of file qmovie.h.

87  {
88  CacheNone,
89  CacheAll
90  };

Constructor & Destructor Documentation

QMovie ( QObject parent = 0)
QMovie ( QIODevice device,
const QByteArray format = QByteArray(),
QObject parent = 0 
)
explicit
QMovie ( const QString fileName,
const QByteArray format = QByteArray(),
QObject parent = 0 
)
explicit
~QMovie ( )

Member Function Documentation

static QList<QByteArray> supportedFormats ( )
static
void setDevice ( QIODevice device)
QIODevice* device ( ) const
void setFileName ( const QString fileName)
QString fileName ( ) const
void setFormat ( const QByteArray format)
QByteArray format ( ) const
void setBackgroundColor ( const QColor color)
QColor backgroundColor ( ) const
MovieState state ( ) const
QRect frameRect ( ) const
QImage currentImage ( ) const
QPixmap currentPixmap ( ) const
bool isValid ( ) const
bool jumpToFrame ( int  frameNumber)
int loopCount ( ) const
int frameCount ( ) const
int nextFrameDelay ( ) const
int currentFrameNumber ( ) const
int speed ( ) const
QSize scaledSize ( )
void setScaledSize ( const QSize size)
CacheMode cacheMode ( ) const
void setCacheMode ( CacheMode  mode)
CacheMode cacheMode ( )
void started ( )
signal
void resized ( const QSize size)
signal
void updated ( const QRect rect)
signal
void stateChanged ( QMovie::MovieState  state)
signal
void error ( QImageReader::ImageReaderError  error)
signal
void finished ( )
signal
void frameChanged ( int  frameNumber)
signal
void start ( )
slot
bool jumpToNextFrame ( )
slot
void setPaused ( bool  paused)
slot
void stop ( )
slot
void setSpeed ( int  percentSpeed)
slot

Property Documentation

int speed
readwrite

Definition at line 79 of file qmovie.h.

CacheMode cacheMode
readwrite

Definition at line 80 of file qmovie.h.


The documentation for this class was generated from the following file: