QTextImageFormat Class
The QTextImageFormat class provides formatting information for images in a QTextDocument. More...
Header: | #include <QTextImageFormat> |
qmake: | QT += gui |
Inherits: | QTextCharFormat |
Note: All functions in this class are reentrant.
Additional Inherited Members
- 3 public functions inherited from QTextCharFormat
- 27 public functions inherited from QTextFormat
Detailed Description
Inline images are represented by a Unicode value U+FFFC (OBJECT REPLACEMENT CHARACTER) which has an associated QTextImageFormat. The image format specifies a name with setName() that is used to locate the image. The size of the rectangle that the image will occupy is specified in pixels using setWidth() and setHeight(). The desired image quality may be set with setQuality().
Images can be supplied in any format for which Qt has an image reader, so SVG drawings can be included alongside PNG, TIFF and other bitmap formats.
See also QImage and QImageReader.