The QAbstractTextDocumentLayout::Selection 类是定义选定参数的方便类。 更多...
| 头: | #include <Selection> |
| QTextCursor | cursor |
| QTextCharFormat | format |
The QAbstractTextDocumentLayout::Selection 类是定义选定参数的方便类。
A selection can be used to specify a part of a document that should be highlighted when drawing custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw () 函数。指定它使用 cursor 和 format .
另请参阅 QAbstractTextDocumentLayout and PaintContext .
This variable holds the selection's cursor.
默认值为 null 光标。
This variable holds the format of the selection.
默认值为 QTextFormat::InvalidFormat .