Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QMovie Class Reference

The QMovie class is a convenience class for playing movies with QImageReader. More...

Inheritance diagram for QtGui.QMovie:
Collaboration diagram for QtGui.QMovie:

Public Types

enum  CacheMode { CacheAll = 1, CacheNone = 0 }
  More...
 
enum  MovieState { NotRunning = 0, Paused = 1, Running = 2 }
  More...
 

Public Member Functions

 QMovie (QObject parent=null)
 
 
 QMovie (QIODevice device)
 
 
 QMovie (QIODevice device, QByteArray format, QObject parent=null)
 
 
 QMovie (string fileName)
 
 
 QMovie (string fileName, QByteArray format, QObject parent=null)
 
 
override void CreateProxy ()
 
new int CurrentFrameNumber ()
 
 
new QImage CurrentImage ()
 
 
new QPixmap CurrentPixmap ()
 
 
new int FrameCount ()
 
 
new QRect FrameRect ()
 
 
new bool IsValid ()
 
 
new bool JumpToFrame (int frameNumber)
 
 
new bool JumpToNextFrame ()
 
 
new int LoopCount ()
 
 
new int NextFrameDelay ()
 
 
new void SetPaused (bool paused)
 
 
new void Start ()
 
 
new QMovie.MovieState State ()
 
 
new void Stop ()
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.QObject
 QObject (QObject parent=null)
 
 
new bool BlockSignals (bool b)
 
 
new
System.Collections.Generic.List
< QObject
Children ()
 
 
new bool Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
new void DeleteLater ()
 
 
new bool Disconnect (QObject receiver, string member=null)
 
 
new bool Disconnect (string signal=null, QObject receiver=null, string member=null)
 
 
new void DumpObjectInfo ()
 
 
new void DumpObjectTree ()
 
 
new
System.Collections.Generic.List
< QByteArray
DynamicPropertyNames ()
 
 
virtual bool OnEvent (QEvent arg1)
 
 
virtual bool EventFilter (QObject arg1, QEvent arg2)
 
 
new bool Inherits (string classname)
 
 
new void InstallEventFilter (QObject arg1)
 
 
new bool IsWidgetType ()
 
 
new void KillTimer (int id)
 
 
new object Property (string name)
 
 
new void RemoveEventFilter (QObject arg1)
 
 
new bool SetProperty (string name, object value)
 
 
new void SetUserData (uint id, QObjectUserData data)
 
new bool SignalsBlocked ()
 
 
new int StartTimer (int interval)
 
 
new QObjectUserData UserData (uint id)
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.Qt
delegate QTextStream FuncQTextStreamQTextStream (QTextStream qTextStream)
 
delegate string FuncStringQByteArray (QByteArray qByteArray)
 
delegate QByteArray FuncQByteArrayString (string @string)
 
delegate void ActionQtMsgTypeString (QtMsgType qtMsgType, string @string)
 
delegate QObject FuncQObject ()
 

Static Public Member Functions

static
System.Collections.Generic.List
< QByteArray
SupportedFormats ()
 
 
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtCore.QObject
static bool Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
static bool Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection)
 
 
static bool Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member)
 
 
static bool Disconnect (QObject sender, string signal, QObject receiver, string member)
 
 
static uint RegisterUserData ()
 
static string Tr (string s, string c=null)
 
 
static string Tr (string s, string c, int n)
 
 
static string TrUtf8 (string s, string c=null)
 
 
static string TrUtf8 (string s, string c, int n)
 
 
- Static Public Member Functions inherited from QtCore.Qt
static QDataStream Write (QDataStream s, object p)
 
static QDataStream Write (QDataStream arg1, QSizeF arg2)
 
static QTextStream Write (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Write (QDataStream arg1, QPoint arg2)
 
static QDataStream Write (QDataStream arg1, QLineF arg2)
 
static QDataStream Write (QDataStream arg1, QPointF arg2)
 
static QDataStream Write (QDataStream arg1, QChar arg2)
 
static QDataStream Write (QDataStream arg1, QByteArray arg2)
 
static QDataStream Write (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Write (QDataStream arg1, QRectF arg2)
 
static QDataStream Write (QDataStream arg1, QDateTime arg2)
 
static QDataStream Write (QDataStream arg1, QUrl arg2)
 
static QDataStream Write (QDataStream arg1, QTime arg2)
 
static QDataStream Write (QDataStream arg1, QLocale arg2)
 
static QDataStream Write (QDataStream arg1, QBitArray arg2)
 
static QDataStream Write (QDataStream arg1, QUuid arg2)
 
static QDataStream Write (QDataStream arg1, QLine arg2)
 
static QDataStream Write (QDataStream arg1, QDate arg2)
 
static QDataStream Write (QDataStream @out, QRegExp regExp)
 
static QDataStream Write (QDataStream arg1, QRect arg2)
 
static QDataStream Write (QDataStream arg1, QSize arg2)
 
static QDataStream Write (QDataStream s, QVariant.Type p)
 
static QDataStream Write (QDataStream arg1, string arg2)
 
static QDataStream Write (QDataStream @out, System.Collections.Generic.List< string > list)
 
static QDataStream Read (QDataStream arg1, QChar arg2)
 
static QDataStream Read (QDataStream arg1, QLocale arg2)
 
static QDataStream Read (QDataStream arg1, QRect arg2)
 
static QDataStream Read (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Read (QDataStream arg1, QDate arg2)
 
static QDataStream Read (QDataStream arg1, QUrl arg2)
 
static QDataStream Read (QDataStream arg1, QUuid arg2)
 
static QTextStream Read (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Read (QDataStream arg1, QLineF arg2)
 
static QDataStream Read (QDataStream arg1, QRectF arg2)
 
static QDataStream Read (QDataStream arg1, QPointF arg2)
 
static QDataStream Read (QDataStream arg1, QLine arg2)
 
static QDataStream Read (QDataStream arg1, QBitArray arg2)
 
static QDataStream Read (QDataStream arg1, QSize arg2)
 
static QDataStream Read (QDataStream arg1, QDateTime arg2)
 
static QDataStream Read (QDataStream arg1, QTime arg2)
 
static QDataStream Read (QDataStream arg1, QPoint arg2)
 
static QDataStream Read (QDataStream @in, QRegExp regExp)
 
static QDataStream Read (QDataStream s, object p)
 
static QDataStream Read (QDataStream arg1, QByteArray arg2)
 
static QDataStream Read (QDataStream arg1, QSizeF arg2)
 
static QDataStream Read (QDataStream arg1, string arg2)
 
static QDataStream Read (QDataStream s, QVariant.Type p)
 
static QDataStream Read (QDataStream @in, System.Collections.Generic.List< string > list)
 
static double qAcos (double v)
 
static void qAddPostRoutine (System.Action arg1)
 
static string qAppName ()
 
static double qAsin (double v)
 
static double qAtan (double v)
 
static double qAtan2 (double x, double y)
 
static void qBadAlloc ()
 
static int qCeil (double v)
 
static ushort qChecksum (string s, uint len)
 
static QByteArray qCompress (QByteArray data)
 
static QByteArray qCompress (QByteArray data, int compressionLevel=-1)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1)
 
static double qCos (double v)
 
static double qExp (double v)
 
static double qFabs (double v)
 
static double qFastCos (double x)
 
static double qFastSin (double x)
 
static string qFlagLocation (string method)
 
static int qFloor (double v)
 
static bool qFuzzyCompare (double p1, double p2)
 
static bool qFuzzyCompare (float p1, float p2)
 
static bool qFuzzyIsNull (double d)
 
static bool qFuzzyIsNull (float f)
 
static uint qHash (QBitArray key)
 
static uint qHash (QChar key)
 
static uint qHash (QStringRef key)
 
static uint qHash (QUrl url)
 
static uint qHash (QPersistentModelIndex index)
 
static uint qHash (QByteArray key)
 
static uint qHash (QModelIndex index)
 
static uint qHash (uint key)
 
static uint qHash (sbyte key)
 
static uint qHash (byte key)
 
static uint qHash (short key)
 
static uint qHash (NativeLong key)
 
static uint qHash (ushort key)
 
static uint qHash (long key)
 
static uint qHash (ulong key)
 
static uint qHash (int key)
 
static uint qHash (string key)
 
static uint qHash (NativeULong key)
 
static double qInf ()
 
static Qt.ActionQtMsgTypeString qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1)
 
static int qIntCast (float f)
 
static int qIntCast (double f)
 
static bool qIsFinite (double d)
 
static bool qIsFinite (float f)
 
static bool qIsInf (float f)
 
static bool qIsInf (double d)
 
static bool qIsNaN (float f)
 
static bool qIsNaN (double d)
 
static bool qIsNull (float f)
 
static bool qIsNull (double d)
 
static double qLn (double v)
 
static double qPow (double x, double y)
 
static double qQNaN ()
 
static void qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function)
 
static void qRemovePostRoutine (System.Action arg1)
 
static int qRound (double d)
 
static long qRound64 (double d)
 
static double qSNaN ()
 
static bool qSharedBuild ()
 
static double qSin (double v)
 
static double qSqrt (double v)
 
static bool qStringComparisonHelper (QStringRef s1, string s2)
 
static double qTan (double v)
 
static QByteArray qUncompress (QByteArray data)
 
static QByteArray qUncompress (Pointer< byte > data, int nbytes)
 
static string qVersion ()
 
static void Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size)
 
static QByteArray Qgetenv (string varName)
 
static bool Qputenv (string varName, QByteArray value)
 
static int Qrand ()
 
static void Qsrand (uint seed)
 
static int Qstrcmp (QByteArray str1, QByteArray str2)
 
static int Qstrcmp (QByteArray str1, string str2)
 
static int Qstrcmp (string str1, QByteArray str2)
 
static int Qstrcmp (string str1, string str2)
 
static Pointer< sbyte > Qstrcpy (Pointer< sbyte > dst, string src)
 
static Pointer< sbyte > Qstrdup (string arg1)
 
static int Qstricmp (string arg1, string arg2)
 
static uint Qstrlen (string str)
 
static int Qstrncmp (string str1, string str2, uint len)
 
static Pointer< sbyte > Qstrncpy (Pointer< sbyte > dst, string src, uint len)
 
static int Qstrnicmp (string arg1, string arg2, uint len)
 
static uint Qstrnlen (string str, uint maxlen)
 
static string QtTrId (string id, int n=-1)
 

Protected Member Functions

 QMovie (System.Type dummy)
 
new void OnError (QImageReader.ImageReaderError error)
 
 
new void OnFinished ()
 
 
new void OnFrameChanged (int frameNumber)
 
 
new void OnResized (QSize size)
 
 
new void OnStarted ()
 
 
new void OnStateChanged (QMovie.MovieState state)
 
 
new void OnUpdated (QRect rect)
 
 
- Protected Member Functions inherited from QtCore.QObject
 QObject (System.Type dummy)
 
virtual void OnChildEvent (QChildEvent arg1)
 
 
virtual void ConnectNotify (string signal)
 
 
virtual void OnCustomEvent (QEvent arg1)
 
 
new void OnDestroyed (QObject arg1=null)
 
 
virtual void DisconnectNotify (string signal)
 
 
new int Receivers (string signal)
 
 
new QObject Sender ()
 
 
new int SenderSignalIndex ()
 
 
virtual void OnTimerEvent (QTimerEvent arg1)
 
 

Properties

Slot Started
 
 
Slot< QSizeResized
 
 
Slot< QRectUpdated
 
 
Slot< QMovie.MovieStateStateChanged
 
 
Slot
< QImageReader.ImageReaderError
Error
 
 
Slot Finished
 
 
Slot< System.Int32 > FrameChanged
 
 
new QColor BackgroundColor [get, set]
 
 
new QIODevice Device [get, set]
 
 
new string FileName [get, set]
 
 
new QByteArray Format [get, set]
 
 
new QSize ScaledSize [get, set]
 
 
new int Speed [get, set]
 
 
new CacheMode cacheMode [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new IQMovieSignals Emit [get]
 
- Properties inherited from QtCore.QObject
virtual EventHandler
< QEventArgs< QChildEvent > > 
ChildEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
CustomEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
Event
 
 
virtual EventHandler
< QEventArgs< QTimerEvent > > 
TimerEvent
 
 
Slot< QObjectDestroyedQObject
 
Slot Destroyed
 
 
new QObject Parent [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
new string ObjectName [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
 
static new QMetaObject StaticQtMetaObject [get]
 
new IQObjectSignals Emit [get]
 

Additional Inherited Members

- Protected Attributes inherited from QtCore.QObject
object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Detailed Description

The QMovie class is a convenience class for playing movies with QImageReader.

This class is used to show simple animations without sound. If you want to display video and media content, use the Phonon multimedia framework instead.

First, create a QMovie object by passing either the name of a file or a pointer to a QIODevice containing an animated image format to QMovie's constructor. You can call isValid() to check if the image data is valid, before starting the movie. To start the movie, call start(). QMovie will enter Running state, and emit started() and stateChanged(). To get the current state of the movie, call state().

To display the movie in your application, you can pass your QMovie object to QLabel::setMovie(). Example:

QLabel label;

QMovie *movie = new QMovie("animations/fire.gif");

label.setMovie(movie);

movie->start();

Whenever a new frame is available in the movie, QMovie will emit updated(). If the size of the frame changes, resized() is emitted. You can call currentImage() or currentPixmap() to get a copy of the current frame. When the movie is done, QMovie emits finished(). If any error occurs during playback (i.e, the image file is corrupt), QMovie will emit error().

You can control the speed of the movie playback by calling setSpeed(), which takes the percentage of the original speed as an argument. Pause the movie by calling setPaused(true). QMovie will then enter Paused state and emit stateChanged(). If you call setPaused(false), QMovie will reenter Running state and start the movie again. To stop the movie, call stop().

Certain animation formats allow you to set the background color. You can call setBackgroundColor() to set the color, or backgroundColor() to retrieve the current background color.

currentFrameNumber() returns the sequence number of the current frame. The first frame in the animation has the sequence number 0. frameCount() returns the total number of frames in the animation, if the image format supports this. You can call loopCount() to get the number of times the movie should loop before finishing. nextFrameDelay() returns the number of milliseconds the current frame should be displayed.

QMovie can be instructed to cache frames of an animation by calling setCacheMode().

Call supportedFormats() for a list of formats that QMovie supports.

See also QLabel, QImageReader, and Movie Example.

Member Enumeration Documentation

This enum describes the different cache modes of QMovie.

Enumerator:
CacheAll 

All frames are cached.

CacheNone 

No frames are cached (the default).

This enum describes the different states of QMovie.

Enumerator:
NotRunning 

The movie is not running. This is QMovie's initial state, and the state it enters after stop() has been called or the movie is finished.

Paused 

The movie is paused, and QMovie stops emitting updated() or resized(). This state is entered after calling pause() or setPaused(true). The current frame number it kept, and the movie will continue with the next frame when unpause() or setPaused(false) is called.

Running 

The movie is running.

Constructor & Destructor Documentation

QtGui.QMovie.QMovie ( System.Type  dummy)
protected
QtGui.QMovie.QMovie ( QObject  parent = null)

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

QtGui.QMovie.QMovie ( QIODevice  device)

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

QtGui.QMovie.QMovie ( QIODevice  device,
QByteArray  format,
QObject  parent = null 
)

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

QtGui.QMovie.QMovie ( string  fileName)

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

QtGui.QMovie.QMovie ( string  fileName,
QByteArray  format,
QObject  parent = null 
)

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

Member Function Documentation

override void QtGui.QMovie.CreateProxy ( )
virtual

Reimplemented from QtCore.QObject.

new int QtGui.QMovie.CurrentFrameNumber ( )

Returns the sequence number of the current frame. The number of the first frame in the movie is 0.

new QImage QtGui.QMovie.CurrentImage ( )

Returns the current frame as a QImage.

See also currentPixmap() and updated().

new QPixmap QtGui.QMovie.CurrentPixmap ( )

Returns the current frame as a QPixmap.

See also currentImage() and updated().

new void QtGui.QMovie.Dispose ( )
new int QtGui.QMovie.FrameCount ( )

Returns the number of frames in the movie.

Certain animation formats do not support this feature, in which case 0 is returned.

new QRect QtGui.QMovie.FrameRect ( )

Returns the rect of the last frame. If no frame has yet been updated, an invalid QRect is returned.

See also currentImage() and currentPixmap().

new bool QtGui.QMovie.IsValid ( )

Returns true if the movie is valid (e.g., the image data is readable and the image format is supported); otherwise returns false.

new bool QtGui.QMovie.JumpToFrame ( int  frameNumber)

Jumps to frame number frameNumber. Returns true on success; otherwise returns false.

new bool QtGui.QMovie.JumpToNextFrame ( )

Jumps to the next frame. Returns true on success; otherwise returns false.

new int QtGui.QMovie.LoopCount ( )

Returns the number of times the movie will loop before it finishes. If the movie will only play once (no looping), loopCount returns 0. If the movie loops forever, loopCount returns -1.

Note that, if the image data comes from a sequential device (e.g. a socket), QMovie can only loop the movie if the cacheMode is set to QMovie::CacheAll.

new int QtGui.QMovie.NextFrameDelay ( )

Returns the number of milliseconds QMovie will wait before updating the next frame in the animation.

new void QtGui.QMovie.OnError ( QImageReader.ImageReaderError  error)
protected

This signal is emitted by QMovie when the error error occurred during playback. QMovie will stop the movie, and enter QMovie::NotRunning state.

new void QtGui.QMovie.OnFinished ( )
protected

This signal is emitted when the movie has finished.

See also QMovie::stop().

new void QtGui.QMovie.OnFrameChanged ( int  frameNumber)
protected

This signal is emitted when the frame number has changed to frameNumber. You can call currentImage() or currentPixmap() to get a copy of the frame.

This function was introduced in Qt 4.1.

new void QtGui.QMovie.OnResized ( QSize  size)
protected

This signal is emitted when the current frame has been resized to size. This effect is sometimes used in animations as an alternative to replacing the frame. You can call currentImage() or currentPixmap() to get a copy of the updated frame.

new void QtGui.QMovie.OnStarted ( )
protected

This signal is emitted after QMovie::start() has been called, and QMovie has entered QMovie::Running state.

new void QtGui.QMovie.OnStateChanged ( QMovie.MovieState  state)
protected

This signal is emitted every time the state of the movie changes. The new state is specified by state.

See also QMovie::state().

new void QtGui.QMovie.OnUpdated ( QRect  rect)
protected

This signal is emitted when the rect rect in the current frame has been updated. You can call currentImage() or currentPixmap() to get a copy of the updated frame.

new void QtGui.QMovie.SetPaused ( bool  paused)

If paused is true, QMovie will enter Paused state and emit stateChanged(Paused); otherwise it will enter Running state and emit stateChanged(Running).

See also paused() and state().

new void QtGui.QMovie.Start ( )

Starts the movie. QMovie will enter Running state, and start emitting updated() and resized() as the movie progresses.

If QMovie is in the Paused state, this function is equivalent to calling setPaused(false). If QMovie is already in the Running state, this function does nothing.

See also stop() and setPaused().

new QMovie.MovieState QtGui.QMovie.State ( )

Returns the current state of QMovie.

See also MovieState and stateChanged().

new void QtGui.QMovie.Stop ( )

Stops the movie. QMovie enters NotRunning state, and stops emitting updated() and resized(). If start() is called again, the movie will restart from the beginning.

If QMovie is already in the NotRunning state, this function does nothing.

See also start() and setPaused().

static System.Collections.Generic.List<QByteArray> QtGui.QMovie.SupportedFormats ( )
static

Returns the list of image formats supported by QMovie.

This function was introduced in Qt 4.1.

See also QImageReader::supportedImageFormats().

static string QtGui.QMovie.Tr ( string  s,
string  c = null 
)
static
static string QtGui.QMovie.Tr ( string  s,
string  c,
int  n 
)
static
static string QtGui.QMovie.TrUtf8 ( string  s,
string  c = null 
)
static
static string QtGui.QMovie.TrUtf8 ( string  s,
string  c,
int  n 
)
static

Property Documentation

new QColor QtGui.QMovie.BackgroundColor
getset

Returns the background color of the movie. If no background color has been assigned, an invalid QColor is returned.

For image formats that support it, this function sets the background color to color.

new CacheMode QtGui.QMovie.cacheMode
getset

This property holds the movie's cache mode.

Caching frames can be useful when the underlying animation format handler that QMovie relies on to decode the animation data does not support jumping to particular frames in the animation, or even "rewinding" the animation to the beginning (for looping). Furthermore, if the image data comes from a sequential device, it is not possible for the underlying animation handler to seek back to frames whose data has already been read (making looping altogether impossible).

To aid in such situations, a QMovie object can be instructed to cache the frames, at the added memory cost of keeping the frames in memory for the lifetime of the object.

By default, this property is set to CacheNone.

new QIODevice QtGui.QMovie.Device
getset

Returns the device QMovie reads image data from. If no device has currently been assigned, 0 is returned.

Sets the current device to device. QMovie will read image data from this device when the movie is running.

new IQMovieSignals QtGui.QMovie.Emit
getprotected
Slot<QImageReader.ImageReaderError> QtGui.QMovie.Error
addremove

This signal is emitted by QMovie when the error error occurred during playback. QMovie will stop the movie, and enter QMovie::NotRunning state.

new string QtGui.QMovie.FileName
getset

Returns the name of the file that QMovie reads image data from. If no file name has been assigned, or if the assigned device is not a file, an empty QString is returned.

Sets the name of the file that QMovie reads image data from, to fileName.

Slot QtGui.QMovie.Finished
addremove

This signal is emitted when the movie has finished.

See also QMovie::stop().

new QByteArray QtGui.QMovie.Format
getset

Returns the format that QMovie uses when decoding image data. If no format has been assigned, an empty QByteArray() is returned.

Sets the format that QMovie will use when decoding image data, to format. By default, QMovie will attempt to guess the format of the image data.

You can call supportedFormats() for the full list of formats QMovie supports.

Slot<System.Int32> QtGui.QMovie.FrameChanged
addremove

This signal is emitted when the frame number has changed to frameNumber. You can call currentImage() or currentPixmap() to get a copy of the frame.

This function was introduced in Qt 4.1.

Slot<QSize> QtGui.QMovie.Resized
addremove

This signal is emitted when the current frame has been resized to size. This effect is sometimes used in animations as an alternative to replacing the frame. You can call currentImage() or currentPixmap() to get a copy of the updated frame.

new QSize QtGui.QMovie.ScaledSize
getset

Returns the scaled size of frames.

This function was introduced in Qt 4.1.

Sets the scaled frame size to size.

This function was introduced in Qt 4.1.

new int QtGui.QMovie.Speed
getset

This property holds the movie's speed.

The speed is measured in percentage of the original movie speed. The default speed is 100%. Example:

QMovie movie("racecar.gif");

movie.setSpeed(200); // 2x speed

Slot QtGui.QMovie.Started
addremove

This signal is emitted after QMovie::start() has been called, and QMovie has entered QMovie::Running state.

Slot<QMovie.MovieState> QtGui.QMovie.StateChanged
addremove

This signal is emitted every time the state of the movie changes. The new state is specified by state.

See also QMovie::state().

new QMetaObject QtGui.QMovie.StaticMetaObject
staticget
Slot<QRect> QtGui.QMovie.Updated
addremove

This signal is emitted when the rect rect in the current frame has been updated. You can call currentImage() or currentPixmap() to get a copy of the updated frame.