PythonQt.QtGui.QTextInlineObject
QTextInlineObject
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
Normally, you do not need to create a QTextInlineObject. It is used by QAbstractTextDocumentLayout to handle inline objects when implementing a custom layout.
The inline object has various attributes that can be set, for example using, setWidth(), setAscent(), and setDescent(). The rectangle it occupies is given by rect(), and its direction by textDirection(). Its position in the text layout is given by textPosition(), and its format is given by format().
Source: https://doc.qt.io/archives/qt-5.15/qtextinlineobject.html
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, *args: Any, **kwargs: Any) -> None |
Native constructor; consult class documentation for supported overloads. (shared captured text) |
ascent |
function | (self) -> float |
X.ascent() -> float |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
delete |
function | (self, *args: Any, **kwargs: Any) -> Any |
Deletes the C++ object (at your own risk, my friend!) (shared captured text) |
descent |
function | (self) -> float |
X.descent() -> float |
format |
function | (self) -> Any |
X.format() -> PythonQt.QtGui.QTextFormat |
formatIndex |
function | (self) -> int |
X.formatIndex() -> int |
height |
function | (self) -> float |
X.height() -> float |
help |
function | (self, *args: Any, **kwargs: Any) -> Any |
Shows the help of available methods for this class (shared captured text) |
inherits |
function | (self, *args: Any, **kwargs: Any) -> Any |
Returns if the class inherits or is of given type name (shared captured text) |
isValid |
function | (self) -> bool |
X.isValid() -> bool |
rect |
function | (self) -> Any |
X.rect() -> PythonQt.QtCore.QRectF |
setAscent |
function | (self, a: float) -> None |
Sets the inline object's ascent to a. |
setDescent |
function | (self, d: float) -> None |
Sets the inline object's descent to d. |
setWidth |
function | (self, w: float) -> None |
Sets the inline object's width to w. |
textDirection |
function | (self) -> Any |
Returns if the object should be laid out right-to-left or left-to-right. |
textPosition |
function | (self) -> int |
X.textPosition() -> int |
width |
function | (self) -> float |
X.width() -> float |