PythonQt.QtGui.QTextBrowser · declarations 004
Back to PythonQt.QtGui.QTextBrowser
setUndoRedoEnabled
setUndoRedoEnabled(enable: Any) -> Any
X.setUndoRedoEnabled(enable)
setWordWrapMode
setWordWrapMode(policy: Any) -> Any
X.setWordWrapMode(policy)
source
instance-attribute
source: QUrl
Qt 5 reference:
source : QUrl
This property holds the name of the displayed document.
This is a an invalid url if no document is displayed or if the source is unknown.
When setting this property QTextBrowser tries to find a document with the specified name in the paths of the searchPaths property and directory of the current source, unless the value is an absolute file path. It also checks for optional anchors and scrolls the document accordingly
If the first tag in the document is <qt type=detail>, the document is displayed as a
popup rather than as new document in the browser window itself. Otherwise, the document
is displayed normally in the text browser with the text set to the contents of the named
document with
QTextDocument::setHtml()
or
QTextDocument::setMarkdown(),
depending on whether the filename ends with any of the known Markdown file extensions.
If you would like to avoid automatic type detection and specify the type explicitly, call setSource() rather than setting this property.
By default, this property contains an empty URL.
Access functions:
| QUrl | source() const |
|---|---|
| virtual void | setSource(const QUrl \&name) |
| void | setSource(const QUrl \&url, QTextDocument::ResourceType type) |
Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#source
sourceChanged
sourceChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextBrowser.sourceChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QTextBrowser::sourceChanged(const QUrl \&src)
This signal is emitted when the source has changed, src being the new source.
Source changes happen both programmatically when calling setSource(), forward(), backward() or home() or when the user clicks on links or presses the equivalent key sequences.
Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#sourceChanged
sourceType
instance-attribute
sourceType: Any
Qt 5 reference:
sourceType : const QTextDocument::ResourceType
This property holds the type of the displayed document
This is QTextDocument::UnknownResource if no document is displayed or if the type of the source is unknown. Otherwise it holds the type that was detected, or the type that was specified when setSource() was called.
Access functions:
| QTextDocument::ResourceType | sourceType() const |
|---|---|
Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#sourceType
tabChangesFocus
instance-attribute
tabChangesFocus: Any
tabStopDistance
instance-attribute
tabStopDistance: Any
tabStopWidth
instance-attribute
tabStopWidth: Any
textBackgroundColor
textBackgroundColor() -> Any
X.textBackgroundColor() -> PythonQt.QtGui.QColor
textChanged
textChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextBrowser.textChanged; argument details are not documented.
textColor
textColor() -> Any
X.textColor() -> PythonQt.QtGui.QColor
textCursor
textCursor() -> Any
X.textCursor() -> PythonQt.QtGui.QTextCursor
textInteractionFlags
instance-attribute
textInteractionFlags: Any
toHtml
toHtml() -> str
X.toHtml() -> str
toPlainText
toPlainText() -> str
X.toPlainText() -> str
undo
undo() -> Any
X.undo()
undoAvailable
undoAvailable(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextBrowser.undoAvailable; argument details are not documented.
undoRedoEnabled
instance-attribute
undoRedoEnabled: Any
Qt 5 reference:
undoRedoEnabled : const bool
This property holds whether the text browser supports undo/redo operations
By default, this property is false.
Source: https://doc.qt.io/archives/qt-5.15/qtextbrowser.html#undoRedoEnabled
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextBrowser.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextBrowser.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTextBrowser.windowTitleChanged; argument details are not documented.
wordWrapMode
wordWrapMode() -> Any
X.wordWrapMode()
zoomIn
zoomIn(range: Any) -> Any
X.zoomIn(range)
zoomInF
zoomInF(range: Any) -> Any
X.zoomInF(range)
zoomOut
zoomOut(range: Any) -> Any
X.zoomOut(range)