The QAbstractTextDocumentLayout::Selection 類是定義選定參數的方便類。 更多...
| 頭: | #include <Selection> |
| qmake: | QT += gui |
| 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 .
此變量保持選定的光標
默認值為 null 光標。
此變量保持選定的格式
默認值為 QTextFormat::InvalidFormat .