42 #include <QtGui/QImageIOHandler> 43 #include <QtCore/QDebug> 45 #ifndef QT_NO_IMAGEFORMATPLUGIN 47 #ifdef QT_NO_IMAGEFORMAT_TGA 48 #undef QT_NO_IMAGEFORMAT_TGA void setFormat(const QByteArray &format)
Sets the format of the QImageIOHandler to format.
#define QT_END_NAMESPACE
This macro expands to.
bool isReadable() const
Returns true if data can be read from the device; otherwise returns false.
The QByteArray class provides an array of bytes.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
Q_EXPORT_PLUGIN2(qjpcodecs, JPTextCodecs)
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool isOpen() const
Returns true if the device is open; otherwise returns false.
bool canRead() const
Returns true if an image can be read from the device (i.
The QStringList class provides a list of strings.
Capabilities capabilities(QIODevice *device, const QByteArray &format) const
Returns the capabilities on the plugin, based on the data in device and the format format...
void setDevice(QIODevice *device)
Sets the device of the QImageIOHandler to device.
The QImageIOPlugin class defines an interface for writing an image format plugin. ...
The QImageIOHandler class defines the common image I/O interface for all image formats in Qt...
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const
Creates and returns a QImageIOHandler subclass, with device and format set.
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
QStringList keys() const
Returns the list of image keys this plugin supports.
The QIODevice class is the base interface class of all I/O devices in Qt.