PythonQt.QtGui.QTextLayout · declarations 002
Back to PythonQt.QtGui.QTextLayout
setRawFont
setRawFont(rawFont: Any) -> None
X.setRawFont(rawFont)
Upstream PySide2 reference signatures (binding differences may apply):
setRawFont(self, rawFont: PySide2.QtGui.QRawFont) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextlayout.html#setRawFont
setText
setText(string: str) -> None
X.setText(string)
Supplemental documentation: Qt 5 reference:
void QTextLayout::setText(const QString \&string)
Sets the layout's text to the given string. The layout is invalidated and must be laid out again.
Notice that when using this QTextLayout as part of a QTextDocument this method will have no effect.
See also text().
Upstream PySide2 reference signatures (binding differences may apply):
setText(self, string: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextlayout.html#setText
setTextOption
setTextOption(option: Any) -> None
X.setTextOption(option)
Supplemental documentation: Qt 5 reference:
void QTextLayout::setTextOption(const QTextOption \&option)
Sets the text option structure that controls the layout process to the given option.
See also textOption().
Upstream PySide2 reference signatures (binding differences may apply):
setTextOption(self, option: PySide2.QtGui.QTextOption) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtextlayout.html#setTextOption
text
text() -> str
textOption
textOption() -> Any
X.textOption() -> PythonQt.QtGui.QTextOption
Supplemental documentation: Qt 5 reference:
const QTextOption \&QTextLayout::textOption() const
Returns the current text option used to control the layout process.
See also setTextOption().
Upstream PySide2 reference signatures (binding differences may apply):
textOption(self) -> PySide2.QtGui.QTextOption
Source: https://doc.qt.io/archives/qt-5.15/qtextlayout.html#textOption