45 #include <QtCore/qobject.h> 49 #include <QtCore/qbytearray.h> 50 #include <QtCore/qlist.h> 51 #include <QtCore/qobject.h> 52 #include <QtGui/qimagereader.h> 55 #include <QtGui/qimage.h> 56 #include <QtGui/qpixmap.h> 102 void setFileName(
const QString &fileName);
108 void setBackgroundColor(
const QColor &color);
109 QColor backgroundColor()
const;
113 QRect frameRect()
const;
114 QImage currentImage()
const;
117 bool isValid()
const;
119 bool jumpToFrame(
int frameNumber);
120 int loopCount()
const;
121 int frameCount()
const;
122 int nextFrameDelay()
const;
123 int currentFrameNumber()
const;
128 void setScaledSize(
const QSize &size);
137 void resized(
const QSize &size);
138 void updated(
const QRect &rect);
142 void frameChanged(
int frameNumber);
146 bool jumpToNextFrame();
147 void setPaused(
bool paused);
149 void setSpeed(
int percentSpeed);
157 inline QT3_SUPPORT
bool isNull()
const {
return isValid(); }
158 inline QT3_SUPPORT
int frameNumber()
const {
return currentFrameNumber(); }
159 inline QT3_SUPPORT
bool running()
const {
return state() == Running; }
160 inline QT3_SUPPORT
bool paused()
const {
return state() == Paused; }
161 inline QT3_SUPPORT
bool finished()
const {
return state() == NotRunning; }
162 inline QT3_SUPPORT
void restart() { stop(); start(); }
163 inline QT3_SUPPORT
QImage frameImage()
const {
return currentImage(); }
164 inline QT3_SUPPORT
QPixmap framePixmap()
const {
return currentPixmap(); }
165 inline QT3_SUPPORT
void step() { jumpToNextFrame(); }
166 inline QT3_SUPPORT
void pause() { setPaused(
true); }
167 inline QT3_SUPPORT
void unpause() { setPaused(
false); }
175 #endif // QT_NO_MOVIE The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
The QMovie class is a convenience class for playing movies with QImageReader.
The QByteArray class provides an array of bytes.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QImage class provides a hardware-independent image representation that allows direct access to th...
handler setDevice(device)
MovieState
This enum describes the different states of QMovie.
ImageReaderError
This enum describes the different types of errors that can occur when reading images with QImageReade...
The QRect class defines a rectangle in the plane using integer precision.
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QIODevice class is the base interface class of all I/O devices in Qt.
static QString fileName(const QString &fileUrl)
static bool isNull(const QVariant::Private *d)
CacheMode
This enum describes the different cache modes of QMovie.