The QVariant class acts like a union for the most common Qt data types.
void setFormat(const QByteArray &format)
Sets the format of the QImageIOHandler to format.
#define QT_END_NAMESPACE
This macro expands to.
virtual ~QImageIOHandler()
Destructs the QImageIOHandler object.
The QByteArray class provides an array of bytes.
virtual bool jumpToNextImage()
For image formats that support animation, this function jumps to the next image.
QImageIOHandler()
Constructs a QImageIOHandler object.
QImageIOPlugin(QObject *parent=0)
Constructs an image plugin with the given parent.
virtual bool jumpToImage(int imageNumber)
For image formats that support animation, this function jumps to the image whose sequence number is i...
The QObject class is the base class of all Qt objects.
virtual bool write(const QImage &image)
Writes the image image to the assigned device.
QByteArray format() const
Returns the format that is currently assigned to QImageIOHandler.
virtual void setOption(ImageOption option, const QVariant &value)
Sets the option option with the value value.
QImageIOHandlerPrivate(QImageIOHandler *q)
#define QT_BEGIN_NAMESPACE
This macro expands to.
ImageOption
This enum describes the different options supported by QImageIOHandler.
The QImage class provides a hardware-independent image representation that allows direct access to th...
virtual QByteArray name() const
Use format() instead.
virtual int loopCount() const
For image formats that support animation, this function returns the number of times the animation sho...
virtual int nextImageDelay() const
For image formats that support animation, this function returns the number of milliseconds to wait un...
virtual ~QImageIOHandlerPrivate()
virtual ~QImageIOPlugin()
Destroys the picture format plugin.
virtual int imageCount() const
For image formats that support animation, this function returns the number of images in the animation...
#define Q_DECLARE_PUBLIC(Class)
void setDevice(QIODevice *device)
Sets the device of the QImageIOHandler to device.
The QImageIOHandler class defines the common image I/O interface for all image formats in Qt...
QScopedPointer< QImageIOHandlerPrivate > d_ptr
The QRect class defines a rectangle in the plane using integer precision.
QIODevice * device() const
Returns the device currently assigned to the QImageIOHandler.
virtual int currentImageNumber() const
For image formats that support animation, this function returns the sequence number of the current im...
virtual QVariant option(ImageOption option) const
Returns the value assigned to option as a QVariant.
virtual bool supportsOption(ImageOption option) const
Returns true if the QImageIOHandler supports the option option; otherwise returns false...
The QIODevice class is the base interface class of all I/O devices in Qt.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
virtual bool canRead() const =0
Returns true if an image can be read from the device (i.
virtual QRect currentImageRect() const
Returns the rect of the current image.