Skip to content

PythonQt.QtGui.QTextBrowser · declarations 003

Back to PythonQt.QtGui.QTextBrowser

plainText instance-attribute

plainText: Any

print

print(printer: Any) -> Any

X.print(printer)

readOnly instance-attribute

readOnly: Any

Qt 5 reference:

readOnly : const bool

This property holds whether the text browser is read-only

By default, this property is true.

Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#readOnly

redo

redo() -> Any

X.redo()

redoAvailable

redoAvailable(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTextBrowser.redoAvailable; argument details are not documented.

reload

reload() -> None

X.reload()

Supplemental documentation: Qt 5 reference:

[virtual slot] void QTextBrowser::reload()

Reloads the current set source.

Upstream PySide2 reference signatures (binding differences may apply):

reload(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#reload

scrollToAnchor

scrollToAnchor(name: Any) -> Any

X.scrollToAnchor(name)

searchPaths instance-attribute

searchPaths: Any

Qt 5 reference:

searchPaths : QStringList

This property holds the search paths used by the text browser to find supporting content

QTextBrowser uses this list to locate images and documents.

By default, this property contains an empty string list.

Access functions:

QStringList searchPaths() const
void setSearchPaths(const QStringList \&paths)

Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#searchPaths

selectionChanged

selectionChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTextBrowser.selectionChanged; argument details are not documented.

setAcceptRichText

setAcceptRichText(accept: Any) -> Any

X.setAcceptRichText(accept)

setAutoFormatting

setAutoFormatting(features: Any) -> Any

X.setAutoFormatting(features)

setCurrentCharFormat

setCurrentCharFormat(format: Any) -> Any

X.setCurrentCharFormat(format)

setCurrentFont

setCurrentFont(f: Any) -> Any

X.setCurrentFont(f)

setCursorWidth

setCursorWidth(width: Any) -> Any

X.setCursorWidth(width)

setDocument

setDocument(document: Any) -> Any

X.setDocument(document)

setDocumentTitle

setDocumentTitle(title: Any) -> Any

X.setDocumentTitle(title)

setExtraSelections

setExtraSelections(selections: Any) -> Any

X.setExtraSelections(selections)

setFontFamily

setFontFamily(fontFamily: Any) -> Any

X.setFontFamily(fontFamily)

setFontItalic

setFontItalic(b: Any) -> Any

X.setFontItalic(b)

setFontPointSize

setFontPointSize(s: Any) -> Any

X.setFontPointSize(s)

setFontUnderline

setFontUnderline(b: Any) -> Any

X.setFontUnderline(b)

setFontWeight

setFontWeight(w: Any) -> Any

X.setFontWeight(w)

setHtml

setHtml(text: Any) -> Any

X.setHtml(text)

setLineWrapColumnOrWidth

setLineWrapColumnOrWidth(w: Any) -> Any

X.setLineWrapColumnOrWidth(w)

setLineWrapMode

setLineWrapMode(mode: Any) -> Any

X.setLineWrapMode(mode)

setMarkdown

setMarkdown(markdown: Any) -> Any

X.setMarkdown(markdown)

setOpenExternalLinks(open: bool) -> None

X.setOpenExternalLinks(open)

Upstream PySide2 reference signatures (binding differences may apply):

setOpenExternalLinks(self, open: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#setOpenExternalLinks

setOpenLinks(open: bool) -> None

X.setOpenLinks(open)

Upstream PySide2 reference signatures (binding differences may apply):

setOpenLinks(self, open: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#setOpenLinks

setOverwriteMode

setOverwriteMode(overwrite: Any) -> Any

X.setOverwriteMode(overwrite)

setPlaceholderText

setPlaceholderText(placeholderText: Any) -> Any

X.setPlaceholderText(placeholderText)

setPlainText

setPlainText(text: Any) -> Any

X.setPlainText(text)

setReadOnly

setReadOnly(ro: Any) -> Any

X.setReadOnly(ro)

setSearchPaths

setSearchPaths(paths: Any) -> None

X.setSearchPaths(paths)

Upstream PySide2 reference signatures (binding differences may apply):

setSearchPaths(self, paths: typing.Sequence[str]) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#setSearchPaths

setSource

setSource(name: Any) -> None

X.setSource(name)

Supplemental documentation: Qt 5 reference:

[slot] void QTextBrowser::setSource(const QUrl \&url, QTextDocument::ResourceType type)

Attempts to load the document at the given url with the specified type.

If type is UnknownResource (the default), the document type will be detected: that is, if the url ends with an extension of .md, .mkd or .markdown, the document will be loaded via QTextDocument::setMarkdown(); otherwise it will be loaded via QTextDocument::setHtml(). This detection can be bypassed by specifying the type explicitly.

Note: Setter function for property source.

Upstream PySide2 reference signatures (binding differences may apply):

setSource(self, name: PySide2.QtCore.QUrl) -> None
setSource(self, name: PySide2.QtCore.QUrl, type: PySide2.QtGui.QTextDocument.ResourceType) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#setSource

setTabChangesFocus

setTabChangesFocus(b: Any) -> Any

X.setTabChangesFocus(b)

setTabStopWidth

setTabStopWidth(width: Any) -> Any

X.setTabStopWidth(width)

setTextBackgroundColor

setTextBackgroundColor(c: Any) -> Any

X.setTextBackgroundColor(c)

setTextColor

setTextColor(c: Any) -> Any

X.setTextColor(c)

setTextCursor

setTextCursor(cursor: Any) -> Any

X.setTextCursor(cursor)

setTextInteractionFlags

setTextInteractionFlags(arg0: flags) -> Any

X.setTextInteractionFlags(flags)