The PySide.QtGui.QTextInlineObject class represents an inline object in a PySide.QtGui.QTextLayout .
This class is only used if the text layout is used to lay out parts of a PySide.QtGui.QTextDocument .
The inline object has various attributes that can be set, for example using, PySide.QtGui.QTextInlineObject.setWidth() , PySide.QtGui.QTextInlineObject.setAscent() , and PySide.QtGui.QTextInlineObject.setDescent() . The rectangle it occupies is given by PySide.QtGui.QTextInlineObject.rect() , and its direction by isRightToLeft() . Its position in the text layout is given by at() , and its format is given by PySide.QtGui.QTextInlineObject.format() .
Parameters: | QTextInlineObject – PySide.QtGui.QTextInlineObject |
---|
Return type: | PySide.QtCore.qreal |
---|
Returns the inline object’s ascent.
Return type: | PySide.QtCore.qreal |
---|
Returns the inline object’s descent.
Return type: | PySide.QtGui.QTextFormat |
---|
Returns format of the inline object within the text layout.
Return type: | PySide.QtCore.int |
---|
Returns an integer describing the format of the inline object within the text layout.
Return type: | PySide.QtCore.qreal |
---|
Returns the inline object’s total height. This is equal to PySide.QtGui.QTextInlineObject.ascent() + PySide.QtGui.QTextInlineObject.descent() + 1.
Return type: | PySide.QtCore.bool |
---|
Returns true if this inline object is valid; otherwise returns false.
Return type: | PySide.QtCore.QRectF |
---|
Returns the inline object’s rectangle.
Parameters: | a – PySide.QtCore.qreal |
---|
Sets the inline object’s ascent to a .
Parameters: | d – PySide.QtCore.qreal |
---|
Sets the inline object’s decent to d .
Parameters: | w – PySide.QtCore.qreal |
---|
Sets the inline object’s width to w .
Return type: | PySide.QtCore.Qt.LayoutDirection |
---|
Returns if the object should be laid out right-to-left or left-to-right.
Return type: | PySide.QtCore.int |
---|
The position of the inline object within the text layout.
Return type: | PySide.QtCore.qreal |
---|
Returns the inline object’s width.