Skip to content

PythonQt.QtGui.QTextBrowser · declarations 002

Back to PythonQt.QtGui.QTextBrowser

focusNextPrevChild

focusNextPrevChild(next: bool) -> bool

X.focusNextPrevChild(next) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QTextBrowser::focusNextPrevChild(bool next)

Reimplements: QTextEdit::focusNextPrevChild(bool next).

Upstream PySide2 reference signatures (binding differences may apply):

focusNextPrevChild(self, next: bool) -> bool

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

focusOutEvent

focusOutEvent(ev: Any) -> None

X.focusOutEvent(ev)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTextBrowser::focusOutEvent(QFocusEvent *ev)

Reimplements: QTextEdit::focusOutEvent(QFocusEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

focusOutEvent(self, ev: PySide2.QtGui.QFocusEvent) -> None

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

fontFamily

fontFamily() -> str

X.fontFamily() -> str

fontItalic

fontItalic() -> bool

X.fontItalic() -> bool

fontPointSize

fontPointSize() -> float

X.fontPointSize() -> float

fontUnderline

fontUnderline() -> bool

X.fontUnderline() -> bool

fontWeight

fontWeight() -> int

X.fontWeight() -> int

forward

forward() -> None

X.forward()

Supplemental documentation: Qt 5 reference:

[virtual slot] void QTextBrowser::forward()

Changes the document displayed to the next document in the list of documents built by navigating links. Does nothing if there is no next document.

See also backward() and forwardAvailable().

Upstream PySide2 reference signatures (binding differences may apply):

forward(self) -> None

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

forwardAvailable

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

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

Supplemental documentation: Qt 5 reference:

[signal] void QTextBrowser::forwardAvailable(bool available)

This signal is emitted when the availability of forward() changes. available is true after the user navigates backward() and false when the user navigates or goes forward().

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

forwardHistoryCount

forwardHistoryCount() -> int

X.forwardHistoryCount() -> int

Supplemental documentation: Qt 5 reference:

int QTextBrowser::forwardHistoryCount() const

Returns the number of locations forward in the history.

This function was introduced in Qt 4.4.

Upstream PySide2 reference signatures (binding differences may apply):

forwardHistoryCount(self) -> int

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

highlighted

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

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

Supplemental documentation: Qt 5 reference:

This signal is emitted when the user has selected but not activated an anchor in the document. The URL referred to by the anchor is passed in link.

Note: Signal highlighted is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

connect(textBrowser, QOverload<const QUrl &>::of(&QTextBrowser::highlighted),
    [=](const QUrl &link){ /* ... */ });

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

historyChanged

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

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

Supplemental documentation: Qt 5 reference:

[signal] void QTextBrowser::historyChanged()

This signal is emitted when the history changes.

This function was introduced in Qt 4.4.

See also historyTitle() and historyUrl().

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

historyTitle

historyTitle(arg__1: int) -> str

X.historyTitle(arg__1) -> str

Supplemental documentation: Qt 5 reference:

QString QTextBrowser::historyTitle(int i) const

Returns the documentTitle() of the HistoryItem.

Input Return
i \< 0 backward() history
i \=\= 0 current, see QTextBrowser::source()
i > 0 forward() history
backaction.setToolTip(browser.historyTitle(-1));
forwardaction.setToolTip(browser.historyTitle(+1));

This function was introduced in Qt 4.4.

Upstream PySide2 reference signatures (binding differences may apply):

historyTitle(self, arg__1: int) -> str

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

historyUrl

historyUrl(arg__1: int) -> Any

X.historyUrl(arg__1) -> PythonQt.QtCore.QUrl

Supplemental documentation: Qt 5 reference:

QUrl QTextBrowser::historyUrl(int i) const

Returns the url of the HistoryItem.

Input Return
i \< 0 backward() history
i \=\= 0 current, see QTextBrowser::source()
i > 0 forward() history

This function was introduced in Qt 4.4.

Upstream PySide2 reference signatures (binding differences may apply):

historyUrl(self, arg__1: int) -> PySide2.QtCore.QUrl

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

home

home() -> None

X.home()

Supplemental documentation: Qt 5 reference:

[virtual slot] void QTextBrowser::home()

Changes the document displayed to be the first document from the history.

Upstream PySide2 reference signatures (binding differences may apply):

home(self) -> None

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

html instance-attribute

html: Any

inputMethodQuery

inputMethodQuery(property: Any) -> Any

X.inputMethodQuery(property) -> object

insertFromMimeData

insertFromMimeData(source: Any) -> Any

X.insertFromMimeData(source)

insertHtml

insertHtml(text: Any) -> Any

X.insertHtml(text)

insertPlainText

insertPlainText(text: Any) -> Any

X.insertPlainText(text)

isBackwardAvailable

isBackwardAvailable() -> bool

X.isBackwardAvailable() -> bool

Supplemental documentation: Qt 5 reference:

bool QTextBrowser::isBackwardAvailable() const

Returns true if the text browser can go backward in the document history using backward().

This function was introduced in Qt 4.2.

See also backwardAvailable() and backward().

Upstream PySide2 reference signatures (binding differences may apply):

isBackwardAvailable(self) -> bool

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

isForwardAvailable

isForwardAvailable() -> bool

X.isForwardAvailable() -> bool

Supplemental documentation: Qt 5 reference:

bool QTextBrowser::isForwardAvailable() const

Returns true if the text browser can go forward in the document history using forward().

This function was introduced in Qt 4.2.

See also forwardAvailable() and forward().

Upstream PySide2 reference signatures (binding differences may apply):

isForwardAvailable(self) -> bool

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

isUndoRedoEnabled

isUndoRedoEnabled() -> bool

X.isUndoRedoEnabled() -> bool

keyPressEvent

keyPressEvent(ev: Any) -> None

X.keyPressEvent(ev)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTextBrowser::keyPressEvent(QKeyEvent *ev)

Reimplements: QTextEdit::keyPressEvent(QKeyEvent *e).

The event ev is used to provide the following keyboard shortcuts:

Keypress Action
Alt+Left Arrow backward()
Alt+Right Arrow forward()
Alt+Up Arrow home()

Upstream PySide2 reference signatures (binding differences may apply):

keyPressEvent(self, ev: PySide2.QtGui.QKeyEvent) -> None

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

lineWrapColumnOrWidth instance-attribute

lineWrapColumnOrWidth: Any

lineWrapMode instance-attribute

lineWrapMode: Any

loadResource

loadResource(type: int, name: Any) -> Any

X.loadResource(type, name) -> object

Supplemental documentation: Qt 5 reference:

[override virtual] QVariant QTextBrowser::loadResource(int type, const QUrl \&name)

Reimplements: QTextEdit::loadResource(int type, const QUrl \&name).

This function is called when the document is loaded and for each image in the document. The type indicates the type of resource to be loaded. An invalid QVariant is returned if the resource cannot be loaded.

The default implementation ignores type and tries to locate the resources by interpreting name as a file name. If it is not an absolute path it tries to find the file in the paths of the searchPaths property and in the same directory as the current source. On success, the result is a QVariant that stores a QByteArray with the contents of the file.

If you reimplement this function, you can return other QVariant types. The table below shows which variant types are supported depending on the resource type:

ResourceType QVariant::Type
QTextDocument::HtmlResource QString or QByteArray
QTextDocument::ImageResource QImage, QPixmap or QByteArray
QTextDocument::StyleSheetResource QString or QByteArray
QTextDocument::MarkdownResource QString or QByteArray

Upstream PySide2 reference signatures (binding differences may apply):

loadResource(self, type: int, name: PySide2.QtCore.QUrl) -> typing.Any

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

markdown instance-attribute

markdown: Any

mergeCurrentCharFormat

mergeCurrentCharFormat(modifier: Any) -> Any

X.mergeCurrentCharFormat(modifier)

mouseDoubleClickEvent

mouseDoubleClickEvent(e: Any) -> Any

X.mouseDoubleClickEvent(e)

mouseMoveEvent

mouseMoveEvent(ev: Any) -> None

X.mouseMoveEvent(ev)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTextBrowser::mouseMoveEvent(QMouseEvent *e)

Reimplements: QTextEdit::mouseMoveEvent(QMouseEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

mouseMoveEvent(self, ev: PySide2.QtGui.QMouseEvent) -> None

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

mousePressEvent

mousePressEvent(ev: Any) -> None

X.mousePressEvent(ev)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTextBrowser::mousePressEvent(QMouseEvent *e)

Reimplements: QTextEdit::mousePressEvent(QMouseEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

mousePressEvent(self, ev: PySide2.QtGui.QMouseEvent) -> None

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

mouseReleaseEvent

mouseReleaseEvent(ev: Any) -> None

X.mouseReleaseEvent(ev)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTextBrowser::mouseReleaseEvent(QMouseEvent *e)

Reimplements: QTextEdit::mouseReleaseEvent(QMouseEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

mouseReleaseEvent(self, ev: PySide2.QtGui.QMouseEvent) -> None

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

moveCursor

moveCursor(operation: Any, mode: Any) -> Any

X.moveCursor(operation, mode)

objectNameChanged

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

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

openExternalLinks: bool

Qt 5 reference:

Specifies whether QTextBrowser should automatically open links to external sources using QDesktopServices::openUrl() instead of emitting the anchorClicked signal. Links are considered external if their scheme is neither file or qrc.

The default value is false.

This property was introduced in Qt 4.2.

Access functions:

bool openExternalLinks() const
void setOpenExternalLinks(bool open)

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

openLinks: bool

Qt 5 reference:

This property specifies whether QTextBrowser should automatically open links the user tries to activate by mouse or keyboard.

Regardless of the value of this property the anchorClicked signal is always emitted.

The default value is true.

This property was introduced in Qt 4.3.

Access functions:

bool openLinks() const
void setOpenLinks(bool open)

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

overwriteMode instance-attribute

overwriteMode: Any

paintEvent

paintEvent(e: Any) -> None

X.paintEvent(e)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTextBrowser::paintEvent(QPaintEvent *e)

Reimplements: QTextEdit::paintEvent(QPaintEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

paintEvent(self, e: PySide2.QtGui.QPaintEvent) -> None

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

paste

paste() -> Any

X.paste()