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 .