44 #ifndef QT_NO_SVGRENDERER 93 }
else if (
q->
format() ==
"svgz") {
267 #endif // QT_NO_SVGRENDERER The QVariant class acts like a union for the most common Qt data types.
T qobject_cast(QObject *object)
The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
void setFormat(const QByteArray &format)
Sets the format of the QImageIOHandler to format.
QXmlStreamReader xmlReader
#define QT_END_NAMESPACE
This macro expands to.
const QByteArray & data() const
Returns the data contained in the buffer.
qreal width() const
Returns the width.
void fill(uint pixel)
Fills the entire image with the given pixelValue.
The QByteArray class provides an array of bytes.
The QPointF class defines a point in the plane using floating point precision.
qreal height() const
Returns the height.
qint64 pos() const
Reimplemented Function
The QBuffer class provides a QIODevice interface for a QByteArray.
bool startsWith(const QByteArray &a) const
Returns true if this byte array starts with byte array ba; otherwise returns false.
QRectF viewBox
Returns viewBoxF().toRect().
The QSizeF class defines the size of a two-dimensional object using floating point precision...
bool seek(qint64 off)
Reimplemented Function
QByteArray format() const
Returns the format that is currently assigned to QImageIOHandler.
QSvgIOHandlerPrivate(QSvgIOHandler *qq)
virtual bool supportsOption(ImageOption option) const
Returns true if the QImageIOHandler supports the option option; otherwise returns false...
int width() const
Returns the width.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QVariant option(ImageOption option) const
Returns the value assigned to option as a QVariant.
The QRectF class defines a rectangle in the plane using floating point precision. ...
ImageOption
This enum describes the different options supported by QImageIOHandler.
qreal height() const
Returns the height of the rectangle.
QSize size() const
Returns the size of the rectangle.
static QByteArray fromRawData(const char *, int size)
Constructs a QByteArray that uses the first size bytes of the data array.
qint64 peek(char *data, qint64 maxlen)
Reads at most maxSize bytes from the device into data, without side effects (i.
The QImage class provides a hardware-independent image representation that allows direct access to th...
qreal width() const
Returns the width of the rectangle.
bool load(QIODevice *device)
QSize toSize() const
Returns the variant as a QSize if the variant has type() Size ; otherwise returns an invalid QSize...
const char * constData() const
Returns a pointer to the data stored in the byte array.
The QSvgRenderer class is used to draw the contents of SVG files onto paint devices.
QRect toRect() const
Returns the variant as a QRect if the variant has type() Rect ; otherwise returns an invalid QRect...
void setDevice(QIODevice *device)
Sets the current device to device.
The QPoint class defines a point in the plane using integer precision.
void render(QPainter *p)
Renders the current document, or the current frame of an animated document, using the given painter...
bool load(const QString &filename)
Loads the SVG file specified by filename, returning true if the content was successfully parsed; othe...
int height() const
Returns the height.
The QRect class defines a rectangle in the plane using integer precision.
bool isValid() const
Returns true if both the width and height is equal to or greater than 0; otherwise returns false...
QIODevice * device() const
Returns the device currently assigned to the QImageIOHandler.
virtual void setOption(ImageOption option, const QVariant &value)
Sets the option option with the value value.
QByteArray readAll()
Reads all available data from the device, and returns it as a QByteArray.
int size() const
Returns the number of bytes in this byte array.
int y() const
Returns the y coordinate of this point.
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QXmlStreamReader class provides a fast parser for reading well-formed XML via a simple streaming ...
int x() const
Returns the x coordinate of this point.
QRgb rgba() const
Returns the RGB value of the color, including its alpha.
bool isEmpty() const
Returns true if either of the width and height is less than or equal to 0; otherwise returns false...
bool isValid() const
Returns true if the rectangle is valid, otherwise returns false.
T value() const
Returns the stored value converted to the template type T.
The QIODevice class is the base interface class of all I/O devices in Qt.
virtual QByteArray name() const
Use format() instead.
virtual bool canRead() const
Returns true if an image can be read from the device (i.
QBool contains(char c) const
Returns true if the byte array contains the character ch; otherwise returns false.
QPoint topLeft() const
Returns the position of the rectangle's top-left corner.
virtual bool read(QImage *image)
Read an image from the device, and stores it in image.