PythonQt.QtGui.QTextItem · declarations 001
Back to PythonQt.QtGui.QTextItem
Dummy
instance-attribute
Dummy: Any
ascent
ascent() -> float
X.ascent() -> float
Supplemental documentation: Qt 5 reference:
qreal QTextItem::ascent() const
Corresponds to the ascent of the piece of text that is drawn.
Upstream PySide2 reference signatures (binding differences may apply):
ascent(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtextitem.html#ascent
descent
descent() -> float
X.descent() -> float
Supplemental documentation: Qt 5 reference:
qreal QTextItem::descent() const
Corresponds to the descent of the piece of text that is drawn.
Upstream PySide2 reference signatures (binding differences may apply):
descent(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtextitem.html#descent
font
font() -> Any
X.font() -> PythonQt.QtGui.QFont
Supplemental documentation: Qt 5 reference:
QFont QTextItem::font() const
Returns the font that should be used to draw the text.
Upstream PySide2 reference signatures (binding differences may apply):
font(self) -> PySide2.QtGui.QFont
Source: https://doc.qt.io/archives/qt-5.15/qtextitem.html#font
renderFlags
renderFlags() -> Any
X.renderFlags()
Supplemental documentation: Qt 5 reference:
QTextItem::RenderFlags QTextItem::renderFlags() const
Returns the render flags used.
Upstream PySide2 reference signatures (binding differences may apply):
renderFlags(self) -> PySide2.QtGui.QTextItem.RenderFlags
Source: https://doc.qt.io/archives/qt-5.15/qtextitem.html#renderFlags
text
text() -> str
X.text() -> str
Supplemental documentation: Qt 5 reference:
QString QTextItem::text() const
Returns the text that should be drawn.
Upstream PySide2 reference signatures (binding differences may apply):
text(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtextitem.html#text
width
width() -> float
X.width() -> float
Supplemental documentation: Qt 5 reference:
qreal QTextItem::width() const
Specifies the total width of the text to be drawn.
Upstream PySide2 reference signatures (binding differences may apply):
width(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtextitem.html#width