QAbstractTextDocumentLayout::Selection Struct
struct QAbstractTextDocumentLayout::SelectionQAbstractTextDocumentLayout::Selection 类是一个定义选择参数的方便类。更多
公共变量
详细说明
当使用QAbstractTextDocumentLayout::draw() 函数为 QTextDocuments 绘制自定义布局时,选区可用于指定文档中应突出显示的部分。可使用cursor 和format 来指定。
另请参阅 QAbstractTextDocumentLayout 和PaintContext 。
成员变量文档
QTextCursor Selection::cursor
该变量用于保存选区的游标
默认值为空游标。
QTextCharFormat Selection::format
该变量用于保存选择的格式
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.