45 #ifndef QT_NO_IMAGEFORMATPLUGIN 47 #ifdef QT_NO_IMAGEFORMAT_JPEG 48 #undef QT_NO_IMAGEFORMAT_JPEG 69 if (format ==
"jpeg" || format ==
"jpg")
97 #endif // QT_NO_IMAGEFORMATPLUGIN 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.
bool isWritable() const
Returns true if data can be written to the device; otherwise returns false.
The QByteArray class provides an array of bytes.
bool canRead() const
Returns true if an image can be read from the device (i.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
Q_EXPORT_PLUGIN2(qjpcodecs, JPTextCodecs)
Q_EXPORT_STATIC_PLUGIN(JPTextCodecs)
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool isOpen() const
Returns true if the device is open; otherwise returns false.
The QStringList class provides a list of strings.
QStringList keys() const
Returns the list of image keys this plugin supports.
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...
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const
Creates and returns a QImageIOHandler subclass, with device and format set.
QImageIOHandler * handler
The QIODevice class is the base interface class of all I/O devices in Qt.
Capabilities capabilities(QIODevice *device, const QByteArray &format) const
Returns the capabilities on the plugin, based on the data in device and the format format...