
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQTextImageFormat class provides formatting information for images in aQTextDocument.More...
| Header: | #include <QTextImageFormat> |
| Inherits: | QTextCharFormat |
Note: All functions in this class arereentrant.
| QTextImageFormat() | |
| qreal | height() const |
| bool | isValid() const |
| QString | name() const |
| void | setHeight(qreal height) |
| void | setName(const QString & name) |
| void | setWidth(qreal width) |
| qreal | width() const |
TheQTextImageFormat class provides formatting information for images in aQTextDocument.
Inline images are represented by an object replacement character (0xFFFC in Unicode) which has an associatedQTextImageFormat. The image format specifies a name withsetName() that is used to locate the image. The size of the rectangle that the image will occupy is specified usingsetWidth() andsetHeight().
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 alsoQImage andQImageReader.
Creates a new image format object.
Returns the height of the rectangle occupied by the image.
See alsowidth() andsetHeight().
Returns true if this image format is valid; otherwise returns false.
Returns the name of the image. The name refers to an entry in the application's resources file.
See alsosetName().
Sets theheight of the rectangle occupied by the image.
See alsoheight() andsetWidth().
Sets thename of the image. Thename is used to locate the image in the application's resources.
See alsoname().
Sets thewidth of the rectangle occupied by the image.
See alsowidth() andsetHeight().
Returns the width of the rectangle occupied by the image.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.