May 2019
Intermediate to advanced
542 pages
13h 37m
English
While QLineEdit exists for single-line strings, QTextEdit provides us with the capability to enter multi-line text. QTextEdit is much more than just a simple plaintext entry, though; it's a full-blown WYSIWYG editor that can be configured to support rich text and images.
Some of the more useful properties of QTextEdit are shown here:
| Property | Arguments | Description |
|---|---|---|
| plainText | string | The contents of the box, in plaintext. |
| html | string | The contents of the box, as rich text. |
| acceptRichText | Boolean | Whether the box allows rich text. |
| lineWrapColumnOrWidth | integer | The pixel or column at which the text will be wrapped. |
| lineWrapMode | QTextEdit.LineWrapMode | Whether the line wrap uses columns or pixels. |
| overwriteMode | Boolean |
Read now
Unlock full access