PythonQt.QtGui.QTextEdit
QTextEdit
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
Introduction and Concepts
QTextEdit is an advanced WYSIWYG viewer/editor supporting rich text formatting using HTML-style tags, or Markdown format. It is optimized to handle large documents and to respond quickly to user input.
QTextEdit works on paragraphs and characters. A paragraph is a formatted string which is word-wrapped to fit into the width of the widget. By default when reading plain text, one newline signifies a paragraph. A document consists of zero or more paragraphs. The words in the paragraph are aligned in accordance with the paragraph's alignment. Paragraphs are separated by hard line breaks. Each character within a paragraph has its own attributes, for example, font and color.
QTextEdit can display images, lists and tables. If the text is too large to view within the text edit's viewport, scroll bars will appear. The text edit can load both plain text and rich text files. Rich text can be described using a subset of HTML 4 markup; refer to the Supported HTML Subset page for more information.
If you just need to display a small piece of rich text use QLabel.
The rich text support in Qt is designed to provide a fast, portable and efficient way to add reasonable online help facilities to applications, and to provide a basis for rich text editors. If you find the HTML support insufficient for your needs you may consider the use of Qt WebKit, which provides a full-featured web browser widget.
The shape of the mouse cursor on a QTextEdit is Qt::IBeamCursor by default. It can be changed through the viewport()'s cursor property.
Using QTextEdit as a Display Widget
QTextEdit can display a large HTML subset, including tables and images.
The text can be set or replaced using setHtml() which deletes any existing text and replaces it with the text passed in the setHtml() call. If you call setHtml() with legacy HTML, and then call toHtml(), the text that is returned may have different markup, but will render the same. The entire text can be deleted with clear().
Text can also be set or replaced using setMarkdown(), and the same caveats apply: if you then call toMarkdown(), the text that is returned may be different, but the meaning is preserved as much as possible. Markdown with some embedded HTML can be parsed, with the same limitations that setHtml() has; but toMarkdown() only writes "pure" Markdown, without any embedded HTML.
Text itself can be inserted using the QTextCursor class or using the convenience functions insertHtml(), insertPlainText(), append() or paste(). QTextCursor is also able to insert complex objects like tables or lists into the document, and it deals with creating selections and applying changes to selected text.
By default the text edit wraps words at whitespace to fit within the text edit widget. The setLineWrapMode() function is used to specify the kind of line wrap you want, or NoWrap if you don't want any wrapping. Call setLineWrapMode() to set a fixed pixel width FixedPixelWidth, or character column (e.g. 80 column) FixedColumnWidth with the pixels or columns specified with setLineWrapColumnOrWidth(). If you use word wrap to the widget's width WidgetWidth, you can specify whether to break on whitespace or anywhere with setWordWrapMode().
The find() function can be used to find and select a given string within the text.
If you want to limit the total number of paragraphs in a QTextEdit, as for example it is often useful in a log viewer, then you can use QTextDocument's maximumBlockCount property for that.
Read-only Key Bindings
When QTextEdit is used read-only the key bindings are limited to navigation, and text may only be selected with the mouse:
| Keypresses | Action |
|---|---|
| Up | Moves one line up. |
| Down | Moves one line down. |
| Left | Moves one character to the left. |
| Right | Moves one character to the right. |
| PageUp | Moves one (viewport) page up. |
| PageDown | Moves one (viewport) page down. |
| Home | Moves to the beginning of the text. |
| End | Moves to the end of the text. |
| Alt+Wheel | Scrolls the page horizontally (the Wheel is the mouse wheel). |
| Ctrl+Wheel | Zooms the text. |
| Ctrl+A | Selects all text. |
The text edit may be able to provide some meta-information. For example, the
documentTitle()
function will return the text from within HTML <title> tags.
Note: Zooming into HTML documents only works if the font-size is not set to a fixed size.
Using QTextEdit as an Editor
All the information about using QTextEdit as a display widget also applies here.
The current char format's attributes are set with setFontItalic(), setFontWeight(), setFontUnderline(), setFontFamily(), setFontPointSize(), setTextColor() and setCurrentFont(). The current paragraph's alignment is set with setAlignment().
Selection of text is handled by the QTextCursor class, which provides functionality for creating selections, retrieving the text contents or deleting selections. You can retrieve the object that corresponds with the user-visible cursor using the textCursor() method. If you want to set a selection in QTextEdit just create one on a QTextCursor object and then make that cursor the visible cursor using setTextCursor(). The selection can be copied to the clipboard with copy(), or cut to the clipboard with cut(). The entire text can be selected using selectAll().
When the cursor is moved and the underlying formatting attributes change, the currentCharFormatChanged() signal is emitted to reflect the new attributes at the new cursor position.
The textChanged() signal is emitted whenever the text changes (as a result of setText() or through the editor itself).
QTextEdit holds a QTextDocument object which can be retrieved using the document() method. You can also set your own document object using setDocument().
QTextDocument provides an isModified() function which will return true if the text has been modified since it was either loaded or since the last call to setModified with false as argument. In addition it provides methods for undo and redo.
Drag and Drop
QTextEdit also supports custom drag and drop behavior. By default, QTextEdit will insert plain text, HTML and rich text when the user drops data of these MIME types onto a document. Reimplement canInsertFromMimeData() and insertFromMimeData() to add support for additional MIME types.
For example, to allow the user to drag and drop an image onto a QTextEdit, you could the implement these functions in the following way:
bool TextEdit::canInsertFromMimeData( const QMimeData *source ) const
{
if (source->hasImage())
return true;
else
return QTextEdit::canInsertFromMimeData(source);
}
We add support for image MIME types by returning true. For all other MIME types, we use the default implementation.
void TextEdit::insertFromMimeData( const QMimeData *source )
{
if (source->hasImage())
{
QImage image = qvariant_cast<QImage>(source->imageData());
QTextCursor cursor = this->textCursor();
QTextDocument *document = this->document();
document->addResource(QTextDocument::ImageResource, QUrl("image"), image);
cursor.insertImage("image");
}
}
We unpack the image from the QVariant held by the MIME source and insert it into the document as a resource.
Editing Key Bindings
The list of key bindings which are implemented for editing:
| Keypresses | Action |
|---|---|
| Backspace | Deletes the character to the left of the cursor. |
| Delete | Deletes the character to the right of the cursor. |
| Ctrl+C | Copy the selected text to the clipboard. |
| Ctrl+Insert | Copy the selected text to the clipboard. |
| Ctrl+K | Deletes to the end of the line. |
| Ctrl+V | Pastes the clipboard text into text edit. |
| Shift+Insert | Pastes the clipboard text into text edit. |
| Ctrl+X | Deletes the selected text and copies it to the clipboard. |
| Shift+Delete | Deletes the selected text and copies it to the clipboard. |
| Ctrl+Z | Undoes the last operation. |
| Ctrl+Y | Redoes the last operation. |
| Left | Moves the cursor one character to the left. |
| Ctrl+Left | Moves the cursor one word to the left. |
| Right | Moves the cursor one character to the right. |
| Ctrl+Right | Moves the cursor one word to the right. |
| Up | Moves the cursor one line up. |
| Down | Moves the cursor one line down. |
| PageUp | Moves the cursor one page up. |
| PageDown | Moves the cursor one page down. |
| Home | Moves the cursor to the beginning of the line. |
| Ctrl+Home | Moves the cursor to the beginning of the text. |
| End | Moves the cursor to the end of the line. |
| Ctrl+End | Moves the cursor to the end of the text. |
| Alt+Wheel | Scrolls the page horizontally (the Wheel is the mouse wheel). |
To select (mark) text hold down the Shift key whilst pressing one of the movement keystrokes, for example, Shift+Right will select the character to the right, and Shift+Ctrl+Right will select the word to the right, etc.
Source: https://doc.qt.io/archives/qt-5.15/qtextedit.html
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
AdjustIgnored |
attribute | Any |
(shared captured text) |
AdjustToContents |
attribute | Any |
(shared captured text) |
AdjustToContentsOnFirstShow |
attribute | Any |
(shared captured text) |
AutoAll |
attribute | Any |
(shared captured text) |
AutoBulletList |
attribute | Any |
(shared captured text) |
AutoFormatting |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
AutoFormattingFlag |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
AutoNone |
attribute | Any |
(shared captured text) |
Box |
attribute | Any |
(shared captured text) |
DrawChildren |
attribute | Any |
(shared captured text) |
DrawWindowBackground |
attribute | Any |
(shared captured text) |
ExtraSelection |
attribute | type |
|
FixedColumnWidth |
attribute | Any |
(shared captured text) |
FixedPixelWidth |
attribute | Any |
(shared captured text) |
HLine |
attribute | Any |
(shared captured text) |
IgnoreMask |
attribute | Any |
(shared captured text) |
LineWrapMode |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
NoFrame |
attribute | Any |
(shared captured text) |
NoWrap |
attribute | Any |
(shared captured text) |
PaintDeviceMetric |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
Panel |
attribute | Any |
(shared captured text) |
PdmDepth |
attribute | Any |
(shared captured text) |
PdmDevicePixelRatio |
attribute | Any |
(shared captured text) |
PdmDevicePixelRatioScaled |
attribute | Any |
(shared captured text) |
PdmDpiX |
attribute | Any |
(shared captured text) |
PdmDpiY |
attribute | Any |
(shared captured text) |
PdmHeight |
attribute | Any |
(shared captured text) |
PdmHeightMM |
attribute | Any |
(shared captured text) |
PdmNumColors |
attribute | Any |
(shared captured text) |
PdmPhysicalDpiX |
attribute | Any |
(shared captured text) |
PdmPhysicalDpiY |
attribute | Any |
(shared captured text) |
PdmWidth |
attribute | Any |
(shared captured text) |
PdmWidthMM |
attribute | Any |
(shared captured text) |
Plain |
attribute | Any |
(shared captured text) |
Raised |
attribute | Any |
(shared captured text) |
RenderFlag |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
RenderFlags |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
Shadow |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
Shadow_Mask |
attribute | Any |
(shared captured text) |
Shape |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
Shape_Mask |
attribute | Any |
(shared captured text) |
SizeAdjustPolicy |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
StyleMask |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
StyledPanel |
attribute | Any |
(shared captured text) |
Sunken |
attribute | Any |
(shared captured text) |
VLine |
attribute | Any |
(shared captured text) |
WidgetWidth |
attribute | Any |
(shared captured text) |
WinPanel |
attribute | Any |
(shared captured text) |
__init__ |
function | (self, *args: Any, **kwargs: Any) -> None |
Native constructor; consult class documentation for supported overloads. (shared captured text) |
acceptDrops |
attribute | Any |
(shared captured text) |
acceptRichText |
attribute | bool |
This property holds whether the text edit accepts rich text insertions by the user |
accessibleDescription |
attribute | Any |
(shared captured text) |
accessibleName |
attribute | Any |
(shared captured text) |
actionEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
actions |
function | (self) -> tuple |
X.actions() -> tuple (shared captured text) |
activateWindow |
function | (self) -> Any |
(shared captured text) |
addAction |
function | (self, action: Any) -> Any |
(shared captured text) |
addActions |
function | (self, actions: Any) -> Any |
(shared captured text) |
addScrollBarWidget |
function | (self, widget: Any, alignment: Any) -> Any |
X.addScrollBarWidget(widget, alignment) (shared captured text) |
adjustSize |
function | (self) -> Any |
(shared captured text) |
alignment |
function | (self) -> Any |
Returns the alignment of the current paragraph. |
anchorAt |
function | (self, pos: Any) -> str |
X.anchorAt(pos) -> str |
append |
function | (self, text: str) -> None |
Appends a new paragraph with text to the end of the text edit. |
autoFillBackground |
attribute | Any |
(shared captured text) |
autoFormatting |
attribute | Any |
This property holds the enabled set of auto formatting features |
backgroundRole |
function | (self) -> Any |
(shared captured text) |
backingStore |
function | (self) -> Any |
X.backingStore() -> PythonQt.QtGui.QBackingStore (shared captured text) |
baseSize |
attribute | QSize |
(shared captured text) |
blockSignals |
function | (self, b: Any) -> bool |
X.blockSignals(b) -> bool (shared captured text) |
canInsertFromMimeData |
function | (self, source: Any) -> bool |
X.canInsertFromMimeData(source) -> bool |
canPaste |
function | (self) -> bool |
X.canPaste() -> bool |
changeEvent |
function | (self, e: Any) -> None |
Reimplements: [QFrame::changeEvent](https://doc.qt.io/archives/qt-5.15/qframe.html#changeEvent)(QEvent *ev). |
childAt |
function | (self, x: Any, y: Any) -> Any |
X.childAt(x, y) -> PythonQt.QtGui.QWidget (shared captured text) |
childEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
children |
function | (self) -> tuple |
X.children() -> tuple (shared captured text) |
childrenRect |
attribute | QRect |
(shared captured text) |
childrenRegion |
attribute | QRegion |
(shared captured text) |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
clear |
function | (self) -> None |
Deletes all the text in the text edit. |
clearFocus |
function | (self) -> Any |
(shared captured text) |
clearMask |
function | (self) -> Any |
(shared captured text) |
close |
function | (self) -> bool |
X.close() -> bool (shared captured text) |
closeEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
colorCount |
function | (self) -> int |
X.colorCount() -> int (shared captured text) |
connect |
function | (self, signal: Any, receiver: Any, slot: Any, type: Any) -> bool |
X.connect(signal, receiver, slot, type) -> bool (shared captured text) |
contentsMargins |
function | (self) -> Any |
X.contentsMargins() -> PythonQt.QtGui.QMargins (shared captured text) |
contentsRect |
function | (self) -> Any |
X.contentsRect() -> PythonQt.QtCore.QRect (shared captured text) |
contextMenuEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::contextMenuEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#contextMenuEvent)(QContextMenuEvent *e). |
contextMenuPolicy |
attribute | Any |
(shared captured text) |
copy |
function | (self) -> None |
Copies any selected text to the clipboard. |
copyAvailable |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.copyAvailable; argument details are not documented. |
cornerWidget |
function | (self) -> Any |
X.cornerWidget() -> PythonQt.QtGui.QWidget (shared captured text) |
createMimeDataFromSelection |
function | (self) -> Any |
X.createMimeDataFromSelection() -> PythonQt.QtCore.QMimeData |
createStandardContextMenu |
function | (self, position: Any) -> Any |
X.createStandardContextMenu(position) -> PythonQt.QtGui.QMenu |
createWinId |
function | (self) -> Any |
(shared captured text) |
createWindowContainer |
function | (self, window: Any, parent: Any, arg2: flags) -> Any |
X.createWindowContainer(window, parent, flags) -> PythonQt.QtGui.QWidget (shared captured text) |
currentCharFormat |
function | (self) -> Any |
X.currentCharFormat() -> PythonQt.QtGui.QTextCharFormat |
currentCharFormatChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.currentCharFormatChanged; argument details are not documented. |
currentFont |
function | (self) -> Any |
X.currentFont() -> PythonQt.QtGui.QFont |
cursor |
attribute | QCursor |
(shared captured text) |
cursorForPosition |
function | (self, pos: Any) -> Any |
X.cursorForPosition(pos) -> PythonQt.QtGui.QTextCursor |
cursorPositionChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.cursorPositionChanged; argument details are not documented. |
cursorRect |
function | (self, cursor: Any) -> Any |
X.cursorRect(cursor) -> PythonQt.QtCore.QRect |
cursorWidth |
attribute | int |
This property specifies the width of the cursor in pixels. |
customContextMenuRequested |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.customContextMenuRequested; argument details are not documented. |
customEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
cut |
function | (self) -> None |
Copies the selected text to the clipboard and deletes it from the text edit. |
delete |
function | (self, *args: Any, **kwargs: Any) -> Any |
Deletes the C++ object (at your own risk, my friend!) (shared captured text) |
deleteLater |
function | (self) -> Any |
(shared captured text) |
depth |
function | (self) -> int |
X.depth() -> int (shared captured text) |
destroy |
function | (self, destroyWindow: Any, destroySubWindows: Any) -> Any |
X.destroy(destroyWindow, destroySubWindows) (shared captured text) |
destroyed |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.destroyed; argument details are not documented. |
devType |
function | (self) -> int |
X.devType() -> int (shared captured text) |
devicePixelRatio |
function | (self) -> int |
X.devicePixelRatio() -> int (shared captured text) |
devicePixelRatioF |
function | (self) -> float |
X.devicePixelRatioF() -> float (shared captured text) |
devicePixelRatioFScale |
function | (self) -> float |
X.devicePixelRatioFScale() -> float (shared captured text) |
disconnect |
function | (self, signal: Any, receiver: Any, slot: Any) -> bool |
X.disconnect(signal, receiver, slot) -> bool (shared captured text) |
doSetTextCursor |
function | (self, cursor: Any) -> None |
|
document |
attribute | QTextDocument |
This property holds the underlying document of the text editor. |
documentTitle |
attribute | str |
This property holds the title of the document parsed from the text. |
dragEnterEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::dragEnterEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragEnterEvent)(QDragEnterEvent *event). |
dragLeaveEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::dragLeaveEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragLeaveEvent)(QDragLeaveEvent *event). |
dragMoveEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::dragMoveEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dragMoveEvent)(QDragMoveEvent *event). |
drawFrame |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
dropEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::dropEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#dropEvent)(QDropEvent *event). |
dumpObjectInfo |
function | (self) -> Any |
(shared captured text) |
dumpObjectTree |
function | (self) -> Any |
(shared captured text) |
dynamicPropertyNames |
function | (self) -> Any |
(shared captured text) |
effectiveWinId |
function | (self) -> int |
X.effectiveWinId() -> int (shared captured text) |
enabled |
attribute | Any |
(shared captured text) |
ensureCursorVisible |
function | (self) -> None |
Ensures that the cursor is visible by scrolling the text edit if necessary. |
ensurePolished |
function | (self) -> Any |
(shared captured text) |
enterEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
event |
function | (self, e: Any) -> bool |
X.event(e) -> bool |
eventFilter |
function | (self, arg__1: Any, arg__2: Any) -> bool |
X.eventFilter(arg__1, arg__2) -> bool (shared captured text) |
extraSelections |
function | (self) -> tuple |
X.extraSelections() -> tuple |
find |
function | (self, exp: Any, options: Any) -> bool |
X.find(exp, options) -> bool |
findChild |
function | (self, type: Any, name: Any) -> Any |
X.findChild(type, name) -> PythonQt.private.QObject (shared captured text) |
findChildren |
function | (self, type: Any, name: Any) -> tuple |
X.findChildren(type, name) -> tuple (shared captured text) |
focus |
attribute | Any |
(shared captured text) |
focusInEvent |
function | (self, e: Any) -> None |
Reimplements: [QWidget::focusInEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#focusInEvent)(QFocusEvent *event). |
focusNextChild |
function | (self) -> bool |
X.focusNextChild() -> bool (shared captured text) |
focusNextPrevChild |
function | (self, next: bool) -> bool |
X.focusNextPrevChild(next) -> bool |
focusOutEvent |
function | (self, e: Any) -> None |
Reimplements: [QWidget::focusOutEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#focusOutEvent)(QFocusEvent *event). |
focusPolicy |
attribute | Any |
(shared captured text) |
focusPreviousChild |
function | (self) -> bool |
X.focusPreviousChild() -> bool (shared captured text) |
focusProxy |
function | (self) -> Any |
X.focusProxy() -> PythonQt.QtGui.QWidget (shared captured text) |
focusWidget |
function | (self) -> Any |
X.focusWidget() -> PythonQt.QtGui.QWidget (shared captured text) |
font |
attribute | QFont |
(shared captured text) |
fontFamily |
function | (self) -> str |
X.fontFamily() -> str |
fontInfo |
function | (self) -> Any |
X.fontInfo() -> PythonQt.QtGui.QFontInfo (shared captured text) |
fontItalic |
function | (self) -> bool |
X.fontItalic() -> bool |
fontMetrics |
function | (self) -> Any |
X.fontMetrics() -> PythonQt.QtGui.QFontMetrics (shared captured text) |
fontPointSize |
function | (self) -> float |
X.fontPointSize() -> float |
fontUnderline |
function | (self) -> bool |
X.fontUnderline() -> bool |
fontWeight |
function | (self) -> int |
X.fontWeight() -> int |
foregroundRole |
function | (self) -> Any |
(shared captured text) |
frameGeometry |
attribute | QRect |
(shared captured text) |
frameRect |
attribute | QRect |
(shared captured text) |
frameShadow |
attribute | Any |
(shared captured text) |
frameShape |
attribute | Any |
(shared captured text) |
frameSize |
attribute | QSize |
(shared captured text) |
frameStyle |
function | (self) -> int |
X.frameStyle() -> int (shared captured text) |
frameWidth |
attribute | Any |
(shared captured text) |
fullScreen |
attribute | Any |
(shared captured text) |
geometry |
attribute | QRect |
(shared captured text) |
grab |
function | (self, rectangle: Any) -> Any |
X.grab(rectangle) -> PythonQt.QtGui.QPixmap (shared captured text) |
grabGesture |
function | (self, type: Any, arg1: flags) -> Any |
X.grabGesture(type, flags) (shared captured text) |
grabKeyboard |
function | (self) -> Any |
(shared captured text) |
grabMouse |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
grabShortcut |
function | (self, key: Any, context: Any) -> int |
X.grabShortcut(key, context) -> int (shared captured text) |
graphicsEffect |
function | (self) -> Any |
X.graphicsEffect() -> PythonQt.QtGui.QGraphicsEffect (shared captured text) |
graphicsProxyWidget |
function | (self) -> Any |
X.graphicsProxyWidget() -> PythonQt.QtGui.QGraphicsProxyWidget (shared captured text) |
hasFocus |
function | (self) -> bool |
X.hasFocus() -> bool (shared captured text) |
hasHeightForWidth |
function | (self) -> bool |
X.hasHeightForWidth() -> bool (shared captured text) |
hasMouseTracking |
function | (self) -> bool |
X.hasMouseTracking() -> bool (shared captured text) |
height |
attribute | Any |
(shared captured text) |
heightForWidth |
function | (self, arg__1: Any) -> int |
X.heightForWidth(arg__1) -> int (shared captured text) |
heightMM |
function | (self) -> int |
X.heightMM() -> int (shared captured text) |
help |
function | (self, *args: Any, **kwargs: Any) -> Any |
Shows the help of available methods for this class (shared captured text) |
hide |
function | (self) -> Any |
(shared captured text) |
hideEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
horizontalScrollBar |
function | (self) -> Any |
X.horizontalScrollBar() -> PythonQt.QtGui.QScrollBar (shared captured text) |
horizontalScrollBarPolicy |
attribute | Any |
(shared captured text) |
html |
attribute | Any |
This property provides an HTML interface to the text of the text edit. |
inherits |
function | (self, *args: Any, **kwargs: Any) -> Any |
Returns if the class inherits or is of given type name (shared captured text) |
initPainter |
function | (self, painter: Any) -> Any |
(shared captured text) |
initStyleOption |
function | (self, option: Any) -> Any |
(shared captured text) |
inputMethodEvent |
function | (self, arg__1: Any) -> None |
Reimplements: [QWidget::inputMethodEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#inputMethodEvent)(QInputMethodEvent *event). |
inputMethodHints |
attribute | Any |
(shared captured text) |
inputMethodQuery |
function | (self, property: Any) -> Any |
X.inputMethodQuery(property) -> object |
insertAction |
function | (self, before: Any, action: Any) -> Any |
X.insertAction(before, action) (shared captured text) |
insertActions |
function | (self, before: Any, actions: Any) -> Any |
X.insertActions(before, actions) (shared captured text) |
insertFromMimeData |
function | (self, source: Any) -> None |
This function inserts the contents of the MIME data object, specified by source, into the text edit at the current cursor position. |
insertHtml |
function | (self, text: str) -> None |
Convenience slot that inserts text which is assumed to be of html formatting at the current cursor position. |
insertPlainText |
function | (self, text: str) -> None |
Convenience slot that inserts text at the current cursor position. |
installEventFilter |
function | (self, filterObj: Any) -> Any |
(shared captured text) |
isActiveWindow |
attribute | Any |
(shared captured text) |
isAncestorOf |
function | (self, child: Any) -> bool |
X.isAncestorOf(child) -> bool (shared captured text) |
isEnabled |
function | (self) -> bool |
X.isEnabled() -> bool (shared captured text) |
isEnabledTo |
function | (self, arg__1: Any) -> bool |
X.isEnabledTo(arg__1) -> bool (shared captured text) |
isFullScreen |
function | (self) -> bool |
X.isFullScreen() -> bool (shared captured text) |
isHidden |
function | (self) -> bool |
X.isHidden() -> bool (shared captured text) |
isLeftToRight |
function | (self) -> bool |
X.isLeftToRight() -> bool (shared captured text) |
isMaximized |
function | (self) -> bool |
X.isMaximized() -> bool (shared captured text) |
isMinimized |
function | (self) -> bool |
X.isMinimized() -> bool (shared captured text) |
isModal |
function | (self) -> bool |
X.isModal() -> bool (shared captured text) |
isReadOnly |
function | (self) -> bool |
X.isReadOnly() -> bool |
isRightToLeft |
function | (self) -> bool |
X.isRightToLeft() -> bool (shared captured text) |
isSignalConnected |
function | (self, signal: Any) -> bool |
X.isSignalConnected(signal) -> bool (shared captured text) |
isUndoRedoEnabled |
function | (self) -> bool |
X.isUndoRedoEnabled() -> bool |
isVisible |
function | (self) -> bool |
X.isVisible() -> bool (shared captured text) |
isVisibleTo |
function | (self, arg__1: Any) -> bool |
X.isVisibleTo(arg__1) -> bool (shared captured text) |
isWidgetType |
function | (self) -> bool |
X.isWidgetType() -> bool (shared captured text) |
isWindow |
function | (self) -> bool |
X.isWindow() -> bool (shared captured text) |
isWindowModified |
function | (self) -> bool |
X.isWindowModified() -> bool (shared captured text) |
isWindowType |
function | (self) -> bool |
X.isWindowType() -> bool (shared captured text) |
keyPressEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::keyPressEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#keyPressEvent)(QKeyEvent *e). |
keyReleaseEvent |
function | (self, e: Any) -> None |
Reimplements: [QWidget::keyReleaseEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#keyReleaseEvent)(QKeyEvent *event). |
keyboardGrabber |
function | (self) -> Any |
X.keyboardGrabber() -> PythonQt.QtGui.QWidget (shared captured text) |
killTimer |
function | (self, id: Any) -> Any |
(shared captured text) |
layout |
function | (self) -> Any |
X.layout() -> PythonQt.QtGui.QLayout (shared captured text) |
layoutDirection |
attribute | Any |
(shared captured text) |
leaveEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
lineWidth |
attribute | Any |
(shared captured text) |
lineWrapColumnOrWidth |
attribute | int |
This property holds the position (in pixels or columns depending on the wrap mode) where text will be wrapped |
lineWrapMode |
attribute | Any |
This property holds the line wrap mode |
loadResource |
function | (self, type: int, name: Any) -> Any |
X.loadResource(type, name) -> object |
locale |
attribute | QLocale |
(shared captured text) |
logicalDpiX |
function | (self) -> int |
X.logicalDpiX() -> int (shared captured text) |
logicalDpiY |
function | (self) -> int |
X.logicalDpiY() -> int (shared captured text) |
lower |
function | (self) -> Any |
(shared captured text) |
mapFrom |
function | (self, arg__1: Any, arg__2: Any) -> Any |
X.mapFrom(arg__1, arg__2) -> PythonQt.QtCore.QPoint (shared captured text) |
mapFromGlobal |
function | (self, arg__1: Any) -> Any |
X.mapFromGlobal(arg__1) -> PythonQt.QtCore.QPoint (shared captured text) |
mapFromParent |
function | (self, arg__1: Any) -> Any |
X.mapFromParent(arg__1) -> PythonQt.QtCore.QPoint (shared captured text) |
mapTo |
function | (self, arg__1: Any, arg__2: Any) -> Any |
X.mapTo(arg__1, arg__2) -> PythonQt.QtCore.QPoint (shared captured text) |
mapToGlobal |
function | (self, arg__1: Any) -> Any |
X.mapToGlobal(arg__1) -> PythonQt.QtCore.QPoint (shared captured text) |
mapToParent |
function | (self, arg__1: Any) -> Any |
X.mapToParent(arg__1) -> PythonQt.QtCore.QPoint (shared captured text) |
markdown |
attribute | Any |
This property provides a Markdown interface to the text of the text edit. |
mask |
function | (self) -> Any |
X.mask() -> PythonQt.QtGui.QRegion (shared captured text) |
maximized |
attribute | Any |
(shared captured text) |
maximumHeight |
attribute | Any |
(shared captured text) |
maximumSize |
attribute | QSize |
(shared captured text) |
maximumViewportSize |
function | (self) -> Any |
X.maximumViewportSize() -> PythonQt.QtCore.QSize (shared captured text) |
maximumWidth |
attribute | Any |
(shared captured text) |
mergeCurrentCharFormat |
function | (self, modifier: Any) -> None |
Merges the properties specified in modifier into the current character format by calling [QTextCursor::mergeCharFormat](https://doc.qt.io/archives/qt-5.15/qtextcursor.html#mergeCharFormat) on the… |
metaObject |
function | (self) -> Any |
X.metaObject() -> PythonQt.QtCore.QMetaObject (shared captured text) |
metric |
function | (self, arg__1: Any) -> int |
X.metric(arg__1) -> int (shared captured text) |
midLineWidth |
attribute | Any |
(shared captured text) |
minimized |
attribute | Any |
(shared captured text) |
minimumHeight |
attribute | Any |
(shared captured text) |
minimumSize |
attribute | QSize |
(shared captured text) |
minimumSizeHint |
attribute | QSize |
(shared captured text) |
minimumWidth |
attribute | Any |
(shared captured text) |
modal |
attribute | Any |
(shared captured text) |
mouseDoubleClickEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::mouseDoubleClickEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseDoubleClickEvent)(QMouseEvent *e). |
mouseGrabber |
function | (self) -> Any |
X.mouseGrabber() -> PythonQt.QtGui.QWidget (shared captured text) |
mouseMoveEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::mouseMoveEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseMoveEvent)(QMouseEvent *e). |
mousePressEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::mousePressEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mousePressEvent)(QMouseEvent *e). |
mouseReleaseEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::mouseReleaseEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#mouseReleaseEvent)(QMouseEvent *e). |
mouseTracking |
attribute | Any |
(shared captured text) |
move |
function | (self, x: Any, y: Any) -> Any |
X.move(x, y) (shared captured text) |
moveCursor |
function | (self, operation: Any, mode: Any) -> None |
X.moveCursor(operation, mode) |
moveEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
moveToThread |
function | (self, thread: Any) -> Any |
(shared captured text) |
nativeEvent |
function | (self, eventType: Any, message: Any, result: Any) -> bool |
X.nativeEvent(eventType, message, result) -> bool (shared captured text) |
nativeParentWidget |
function | (self) -> Any |
X.nativeParentWidget() -> PythonQt.QtGui.QWidget (shared captured text) |
nextInFocusChain |
function | (self) -> Any |
X.nextInFocusChain() -> PythonQt.QtGui.QWidget (shared captured text) |
normalGeometry |
attribute | QRect |
(shared captured text) |
objectName |
attribute | Any |
(shared captured text) |
objectNameChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.objectNameChanged; argument details are not documented. |
overrideWindowFlags |
function | (self, type: Any) -> Any |
(shared captured text) |
overrideWindowState |
function | (self, state: Any) -> Any |
(shared captured text) |
overwriteMode |
attribute | bool |
This property holds whether text entered by the user will overwrite existing text |
paintEngine |
function | (self) -> Any |
X.paintEngine() -> PythonQt.QtGui.QPaintEngine (shared captured text) |
paintEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::paintEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#paintEvent)(QPaintEvent *event). |
paintingActive |
function | (self) -> bool |
X.paintingActive() -> bool (shared captured text) |
palette |
attribute | QPalette |
(shared captured text) |
parent |
function | (self) -> Any |
X.parent() -> PythonQt.private.QObject (shared captured text) |
parentWidget |
function | (self) -> Any |
X.parentWidget() -> PythonQt.QtGui.QWidget (shared captured text) |
paste |
function | (self) -> None |
Pastes the text from the clipboard into the text edit at the current cursor position. |
physicalDpiX |
function | (self) -> int |
X.physicalDpiX() -> int (shared captured text) |
physicalDpiY |
function | (self) -> int |
X.physicalDpiY() -> int (shared captured text) |
placeholderText |
attribute | str |
This property holds the editor placeholder text |
plainText |
attribute | Any |
This property gets and sets the text editor's contents as plain text. |
pos |
attribute | QPoint |
(shared captured text) |
previousInFocusChain |
function | (self) -> Any |
X.previousInFocusChain() -> PythonQt.QtGui.QWidget (shared captured text) |
print |
function | (self, printer: Any) -> Any |
Convenience function to print the text edit's document to the given printer. |
property |
function | (self, name: Any) -> Any |
X.property(name) -> object (shared captured text) |
raise_ |
function | (self) -> Any |
Native spelling: raise; access it through getattr on the native object. (shared captured text) |
readOnly |
attribute | Any |
This property holds whether the text edit is read-only |
rect |
attribute | QRect |
(shared captured text) |
redirected |
function | (self, offset: Any) -> Any |
X.redirected(offset) -> PythonQt.QtGui.QPaintDevice (shared captured text) |
redo |
function | (self) -> None |
Redoes the last operation. |
redoAvailable |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.redoAvailable; argument details are not documented. |
releaseKeyboard |
function | (self) -> Any |
(shared captured text) |
releaseMouse |
function | (self) -> Any |
(shared captured text) |
releaseShortcut |
function | (self, id: Any) -> Any |
(shared captured text) |
removeAction |
function | (self, action: Any) -> Any |
(shared captured text) |
removeEventFilter |
function | (self, obj: Any) -> Any |
(shared captured text) |
render |
function | (self, target: Any, targetOffset: Any, sourceRegion: Any, renderFlags: Any) -> Any |
X.render(target, targetOffset, sourceRegion, renderFlags) (shared captured text) |
repaint |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.repaint(x, y, w, h) (shared captured text) |
resize |
function | (self, w: Any, h: Any) -> Any |
X.resize(w, h) (shared captured text) |
resizeEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::resizeEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#resizeEvent)(QResizeEvent *event). |
restoreGeometry |
function | (self, geometry: Any) -> bool |
X.restoreGeometry(geometry) -> bool (shared captured text) |
saveGeometry |
function | (self) -> Any |
X.saveGeometry() -> PythonQt.QtCore.QByteArray (shared captured text) |
scroll |
function | (self, dx: Any, dy: Any, arg__3: Any) -> Any |
X.scroll(dx, dy, arg__3) (shared captured text) |
scrollBarWidgets |
function | (self, alignment: Any) -> tuple |
X.scrollBarWidgets(alignment) -> tuple (shared captured text) |
scrollContentsBy |
function | (self, dx: int, dy: int) -> None |
X.scrollContentsBy(dx, dy) |
scrollToAnchor |
function | (self, name: str) -> None |
Scrolls the text edit so that the anchor with the given name is visible; does nothing if the name is empty, or is already visible, or isn't found. |
selectAll |
function | (self) -> None |
Selects all text. |
selectionChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.selectionChanged; argument details are not documented. |
sender |
function | (self) -> Any |
X.sender() -> PythonQt.private.QObject (shared captured text) |
senderSignalIndex |
function | (self) -> int |
X.senderSignalIndex() -> int (shared captured text) |
setAcceptDrops |
function | (self, on: Any) -> Any |
(shared captured text) |
setAcceptRichText |
function | (self, accept: bool) -> None |
|
setAccessibleDescription |
function | (self, description: Any) -> Any |
(shared captured text) |
setAccessibleName |
function | (self, name: Any) -> Any |
(shared captured text) |
setAlignment |
function | (self, a: Any) -> None |
Sets the alignment of the current paragraph to a. |
setAttribute |
function | (self, arg__1: Any, on: Any) -> Any |
X.setAttribute(arg__1, on) (shared captured text) |
setAutoFillBackground |
function | (self, enabled: Any) -> Any |
(shared captured text) |
setAutoFormatting |
function | (self, features: Any) -> None |
|
setBackgroundRole |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setBaseSize |
function | (self, basew: Any, baseh: Any) -> Any |
X.setBaseSize(basew, baseh) (shared captured text) |
setContentsMargins |
function | (self, left: Any, top: Any, right: Any, bottom: Any) -> Any |
X.setContentsMargins(left, top, right, bottom) (shared captured text) |
setContextMenuPolicy |
function | (self, policy: Any) -> Any |
(shared captured text) |
setCornerWidget |
function | (self, widget: Any) -> Any |
(shared captured text) |
setCurrentCharFormat |
function | (self, format: Any) -> None |
Sets the char format that is be used when inserting new text to format by calling [QTextCursor::setCharFormat](https://doc.qt.io/archives/qt-5.15/qtextcursor.html#setCharFormat)() on the editor's… |
setCurrentFont |
function | (self, f: Any) -> None |
Sets the font of the current format to f. |
setCursor |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setCursorWidth |
function | (self, width: int) -> None |
|
setDisabled |
function | (self, a: Any) -> Any |
(shared captured text) |
setDocument |
function | (self, document: Any) -> None |
|
setDocumentTitle |
function | (self, title: str) -> None |
|
setEnabled |
function | (self, a: Any) -> Any |
(shared captured text) |
setExtraSelections |
function | (self, selections: Any) -> None |
This function allows temporarily marking certain regions in the document with a given color, specified as selections. |
setFixedHeight |
function | (self, h: Any) -> Any |
(shared captured text) |
setFixedSize |
function | (self, w: Any, h: Any) -> Any |
X.setFixedSize(w, h) (shared captured text) |
setFixedWidth |
function | (self, w: Any) -> Any |
(shared captured text) |
setFocus |
function | (self, reason: Any) -> Any |
(shared captured text) |
setFocusPolicy |
function | (self, policy: Any) -> Any |
(shared captured text) |
setFocusProxy |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setFont |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setFontFamily |
function | (self, fontFamily: str) -> None |
Sets the font family of the current format to fontFamily. |
setFontItalic |
function | (self, b: bool) -> None |
If italic is true, sets the current format to italic; otherwise sets the current format to non-italic. |
setFontPointSize |
function | (self, s: float) -> None |
Sets the point size of the current format to s. |
setFontUnderline |
function | (self, b: bool) -> None |
If underline is true, sets the current format to underline; otherwise sets the current format to non-underline. |
setFontWeight |
function | (self, w: int) -> None |
Sets the font weight of the current format to the given weight, where the value used is in the range defined by the [QFont::Weight](https://doc.qt.io/archives/qt-5.15/qfont.html#Weight-enum) enum. |
setForegroundRole |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setFrameRect |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setFrameShadow |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setFrameShape |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setFrameStyle |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setGeometry |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.setGeometry(x, y, w, h) (shared captured text) |
setGraphicsEffect |
function | (self, effect: Any) -> Any |
(shared captured text) |
setHidden |
function | (self, hidden: Any) -> Any |
(shared captured text) |
setHorizontalScrollBar |
function | (self, scrollbar: Any) -> Any |
(shared captured text) |
setHorizontalScrollBarPolicy |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setHtml |
function | (self, text: str) -> None |
|
setInputMethodHints |
function | (self, hints: Any) -> Any |
(shared captured text) |
setLayout |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setLayoutDirection |
function | (self, direction: Any) -> Any |
(shared captured text) |
setLineWidth |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setLineWrapColumnOrWidth |
function | (self, w: int) -> None |
|
setLineWrapMode |
function | (self, mode: Any) -> None |
|
setLocale |
function | (self, locale: Any) -> Any |
(shared captured text) |
setMarkdown |
function | (self, markdown: str) -> None |
|
setMask |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setMaximumHeight |
function | (self, maxh: Any) -> Any |
(shared captured text) |
setMaximumSize |
function | (self, maxw: Any, maxh: Any) -> Any |
X.setMaximumSize(maxw, maxh) (shared captured text) |
setMaximumWidth |
function | (self, maxw: Any) -> Any |
(shared captured text) |
setMidLineWidth |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setMinimumHeight |
function | (self, minh: Any) -> Any |
(shared captured text) |
setMinimumSize |
function | (self, minw: Any, minh: Any) -> Any |
X.setMinimumSize(minw, minh) (shared captured text) |
setMinimumWidth |
function | (self, minw: Any) -> Any |
(shared captured text) |
setMouseTracking |
function | (self, enable: Any) -> Any |
(shared captured text) |
setObjectName |
function | (self, name: Any) -> Any |
(shared captured text) |
setOverwriteMode |
function | (self, overwrite: bool) -> None |
|
setPalette |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setParent |
function | (self, parent: Any, f: Any) -> Any |
X.setParent(parent, f) (shared captured text) |
setPlaceholderText |
function | (self, placeholderText: str) -> None |
|
setPlainText |
function | (self, text: str) -> None |
Changes the text of the text edit to the string text. |
setProperty |
function | (self, name: Any, value: Any) -> bool |
X.setProperty(name, value) -> bool (shared captured text) |
setReadOnly |
function | (self, ro: bool) -> None |
|
setShortcutAutoRepeat |
function | (self, id: Any, enable: Any) -> Any |
X.setShortcutAutoRepeat(id, enable) (shared captured text) |
setShortcutEnabled |
function | (self, id: Any, enable: Any) -> Any |
X.setShortcutEnabled(id, enable) (shared captured text) |
setSizeAdjustPolicy |
function | (self, policy: Any) -> Any |
(shared captured text) |
setSizeIncrement |
function | (self, w: Any, h: Any) -> Any |
X.setSizeIncrement(w, h) (shared captured text) |
setSizePolicy |
function | (self, horizontal: Any, vertical: Any) -> Any |
X.setSizePolicy(horizontal, vertical) (shared captured text) |
setStatusTip |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setStyle |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setStyleSheet |
function | (self, styleSheet: Any) -> Any |
(shared captured text) |
setTabChangesFocus |
function | (self, b: bool) -> None |
|
setTabOrder |
function | (self, arg__1: Any, arg__2: Any) -> Any |
X.setTabOrder(arg__1, arg__2) (shared captured text) |
setTabStopWidth |
function | (self, width: int) -> None |
|
setText |
function | (self, text: str) -> None |
Sets the text edit's text. |
setTextBackgroundColor |
function | (self, c: Any) -> None |
Sets the text background color of the current format to c. |
setTextColor |
function | (self, c: Any) -> None |
Sets the text color of the current format to c. |
setTextCursor |
function | (self, cursor: Any) -> None |
Sets the visible cursor. |
setTextInteractionFlags |
function | (self, arg0: flags) -> None |
|
setToolTip |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setToolTipDuration |
function | (self, msec: Any) -> Any |
(shared captured text) |
setUndoRedoEnabled |
function | (self, enable: bool) -> None |
|
setUpdatesEnabled |
function | (self, enable: Any) -> Any |
(shared captured text) |
setVerticalScrollBar |
function | (self, scrollbar: Any) -> Any |
(shared captured text) |
setVerticalScrollBarPolicy |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setViewport |
function | (self, widget: Any) -> Any |
(shared captured text) |
setViewportMargins |
function | (self, left: Any, top: Any, right: Any, bottom: Any) -> Any |
X.setViewportMargins(left, top, right, bottom) (shared captured text) |
setVisible |
function | (self, visible: Any) -> Any |
(shared captured text) |
setWhatsThis |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setWindowFilePath |
function | (self, filePath: Any) -> Any |
(shared captured text) |
setWindowFlags |
function | (self, type: Any) -> Any |
(shared captured text) |
setWindowIcon |
function | (self, icon: Any) -> Any |
(shared captured text) |
setWindowIconText |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setWindowModality |
function | (self, windowModality: Any) -> Any |
(shared captured text) |
setWindowModified |
function | (self, a: Any) -> Any |
(shared captured text) |
setWindowOpacity |
function | (self, level: Any) -> Any |
(shared captured text) |
setWindowRole |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
setWindowState |
function | (self, state: Any) -> Any |
(shared captured text) |
setWindowTitle |
function | (self, a: Any) -> Any |
(shared captured text) |
setWordWrapMode |
function | (self, policy: Any) -> None |
|
setupViewport |
function | (self, viewport: Any) -> Any |
(shared captured text) |
sharedPainter |
function | (self) -> Any |
X.sharedPainter() -> PythonQt.QtGui.QPainter (shared captured text) |
show |
function | (self) -> Any |
(shared captured text) |
showEvent |
function | (self, arg__1: Any) -> None |
Reimplements: [QWidget::showEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#showEvent)(QShowEvent *event). |
showFullScreen |
function | (self) -> Any |
(shared captured text) |
showMaximized |
function | (self) -> Any |
(shared captured text) |
showMinimized |
function | (self) -> Any |
(shared captured text) |
showNormal |
function | (self) -> Any |
(shared captured text) |
signalsBlocked |
function | (self) -> bool |
X.signalsBlocked() -> bool (shared captured text) |
size |
attribute | QSize |
(shared captured text) |
sizeAdjustPolicy |
attribute | Any |
(shared captured text) |
sizeHint |
attribute | QSize |
(shared captured text) |
sizeIncrement |
attribute | QSize |
(shared captured text) |
sizePolicy |
attribute | QSizePolicy |
(shared captured text) |
stackUnder |
function | (self, arg__1: Any) -> Any |
(shared captured text) |
startTimer |
function | (self, interval: Any, timerType: Any) -> int |
X.startTimer(interval, timerType) -> int (shared captured text) |
statusTip |
attribute | Any |
(shared captured text) |
style |
function | (self) -> Any |
X.style() -> PythonQt.QtGui.QStyle (shared captured text) |
styleSheet |
attribute | Any |
(shared captured text) |
tabChangesFocus |
attribute | bool |
This property holds whether Tab changes focus or is accepted as input |
tabStopDistance |
attribute | float |
This property holds the tab stop distance in pixels |
tabStopWidth |
attribute | int |
(shared captured text) |
tabletEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
tabletTracking |
attribute | Any |
(shared captured text) |
testAttribute |
function | (self, arg__1: Any) -> bool |
X.testAttribute(arg__1) -> bool (shared captured text) |
textBackgroundColor |
function | (self) -> Any |
X.textBackgroundColor() -> PythonQt.QtGui.QColor |
textChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.textChanged; argument details are not documented. |
textColor |
function | (self) -> Any |
X.textColor() -> PythonQt.QtGui.QColor |
textCursor |
function | (self) -> Any |
X.textCursor() -> PythonQt.QtGui.QTextCursor |
textInteractionFlags |
attribute | Any |
Specifies how the widget should interact with user input. |
thread |
function | (self) -> Any |
(shared captured text) |
timerEvent |
function | (self, e: Any) -> None |
|
toHtml |
function | (self) -> str |
X.toHtml() -> str |
toPlainText |
function | (self) -> str |
X.toPlainText() -> str |
toolTip |
attribute | Any |
(shared captured text) |
toolTipDuration |
attribute | Any |
(shared captured text) |
tr |
function | (self, text: Any, ambig: Any, n: Any) -> str |
X.tr(text, ambig, n) -> str (shared captured text) |
underMouse |
function | (self) -> bool |
X.underMouse() -> bool (shared captured text) |
undo |
function | (self) -> None |
Undoes the last operation. |
undoAvailable |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.undoAvailable; argument details are not documented. |
undoRedoEnabled |
attribute | Any |
This property holds whether undo and redo are enabled |
ungrabGesture |
function | (self, type: Any) -> Any |
(shared captured text) |
unsetCursor |
function | (self) -> Any |
(shared captured text) |
unsetLayoutDirection |
function | (self) -> Any |
(shared captured text) |
unsetLocale |
function | (self) -> Any |
(shared captured text) |
update |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.update(x, y, w, h) (shared captured text) |
updateGeometry |
function | (self) -> Any |
(shared captured text) |
updatesEnabled |
attribute | Any |
(shared captured text) |
verticalScrollBar |
function | (self) -> Any |
X.verticalScrollBar() -> PythonQt.QtGui.QScrollBar (shared captured text) |
verticalScrollBarPolicy |
attribute | Any |
(shared captured text) |
viewport |
function | (self) -> Any |
X.viewport() -> PythonQt.QtGui.QWidget (shared captured text) |
viewportEvent |
function | (self, arg__1: Any) -> bool |
X.viewportEvent(arg__1) -> bool (shared captured text) |
viewportMargins |
function | (self) -> Any |
X.viewportMargins() -> PythonQt.QtGui.QMargins (shared captured text) |
viewportSizeHint |
function | (self) -> Any |
X.viewportSizeHint() -> PythonQt.QtCore.QSize (shared captured text) |
visible |
attribute | Any |
(shared captured text) |
visibleRegion |
function | (self) -> Any |
X.visibleRegion() -> PythonQt.QtGui.QRegion (shared captured text) |
whatsThis |
attribute | Any |
(shared captured text) |
wheelEvent |
function | (self, e: Any) -> None |
Reimplements: [QAbstractScrollArea::wheelEvent](https://doc.qt.io/archives/qt-5.15/qabstractscrollarea.html#wheelEvent)(QWheelEvent *e). |
width |
attribute | Any |
(shared captured text) |
widthMM |
function | (self) -> int |
X.widthMM() -> int (shared captured text) |
winId |
function | (self) -> int |
X.winId() -> int (shared captured text) |
window |
function | (self) -> Any |
X.window() -> PythonQt.QtGui.QWidget (shared captured text) |
windowFilePath |
attribute | Any |
(shared captured text) |
windowFlags |
function | (self) -> Any |
(shared captured text) |
windowHandle |
function | (self) -> Any |
X.windowHandle() -> PythonQt.QtGui.QWindow (shared captured text) |
windowIcon |
attribute | QIcon |
(shared captured text) |
windowIconChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.windowIconChanged; argument details are not documented. |
windowIconText |
attribute | Any |
(shared captured text) |
windowIconTextChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.windowIconTextChanged; argument details are not documented. |
windowModality |
attribute | Any |
(shared captured text) |
windowModified |
attribute | Any |
(shared captured text) |
windowOpacity |
attribute | Any |
(shared captured text) |
windowRole |
function | (self) -> str |
X.windowRole() -> str (shared captured text) |
windowState |
function | (self) -> Any |
(shared captured text) |
windowTitle |
attribute | Any |
(shared captured text) |
windowTitleChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.QtGui.QTextEdit.windowTitleChanged; argument details are not documented. |
windowType |
function | (self) -> Any |
(shared captured text) |
wordWrapMode |
function | (self) -> Any |
This property holds the mode [QTextEdit](https://doc.qt.io/archives/qt-5.15/qtextedit.html) will use when wrapping text by words |
x |
attribute | Any |
(shared captured text) |
y |
attribute | Any |
(shared captured text) |
zoomIn |
function | (self, range: int) -> None |
Zooms in on the text by making the base font size range points larger and recalculating all font sizes to be the new size. |
zoomInF |
function | (self, range: float) -> None |
|
zoomOut |
function | (self, range: int) -> None |
Zooms out on the text by making the base font size range points smaller and recalculating all font sizes to be the new size. |