
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQTextInlineObject class represents an inline object in aQTextLayout.More...
| Header: | #include <QTextInlineObject> |
Note: All functions in this class arereentrant.
| QTextInlineObject(int i, QTextEngine * e) | |
| qreal | ascent() const |
| qreal | descent() const |
| QTextFormat | format() const |
| int | formatIndex() const |
| qreal | height() const |
| bool | isValid() const |
| QRectF | rect() const |
| void | setAscent(qreal a) |
| void | setDescent(qreal d) |
| void | setWidth(qreal w) |
| Qt::LayoutDirection | textDirection() const |
| int | textPosition() const |
| qreal | width() const |
TheQTextInlineObject class represents an inline object in aQTextLayout.
This class is only used if the text layout is used to lay out parts of aQTextDocument.
The inline object has various attributes that can be set, for example using,setWidth(),setAscent(), andsetDescent(). The rectangle it occupies is given byrect(), and its direction by isRightToLeft(). Its position in the text layout is given by at(), and its format is given byformat().
Creates a new inline object for the item at positioni in the text enginee.
Returns the inline object's ascent.
See alsosetAscent(),descent(),width(), andrect().
Returns the inline object's descent.
See alsosetDescent(),ascent(),width(), andrect().
Returns format of the inline object within the text layout.
Returns an integer describing the format of the inline object within the text layout.
Returns the inline object's total height. This is equal toascent() +descent() + 1.
See alsoascent(),descent(),width(), andrect().
Returns true if this inline object is valid; otherwise returns false.
Returns the inline object's rectangle.
See alsoascent(),descent(), andwidth().
Sets the inline object's ascent toa.
See alsoascent(),setDescent(),width(), andrect().
Sets the inline object's decent tod.
See alsodescent(),setAscent(),width(), andrect().
Sets the inline object's width tow.
See alsowidth(),ascent(),descent(), andrect().
Returns if the object should be laid out right-to-left or left-to-right.
The position of the inline object within the text layout.
Returns the inline object's width.
© 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.