Represents a contiguous selection of text and its properties. More...
| Import Statement: | import QtQuick |
| Since: | Qt 6.7 |
TextEdit.cursorSelection represents the range of text that is currently selected (for example by dragging the mouse). It can be used to query and modify the selected text, as well as properties in the character and block formats.
Note: This API is considered tech preview and may change or be removed in future versions of Qt.
See also TextEdit and QTextCursor.
|
alignment : enumeration |
The alignment of the block containing the selected text.
See also QTextBlockFormat::alignment().
|
color : color |
The foreground color of the selected text.
See also QTextCharFormat::foreground().
|
font : color |
The font of the selected text.
See also QTextCharFormat::font().
|
text : string |
The selected text, without any rich text markup.
Setting this property replaces the selected text with the given string.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: