QTextLayout::FormatRange Struct
struct QTextLayout::FormatRangeQTextLayout::FormatRange 结构用于对文本布局内容中的指定区域应用额外的格式信息。更多内容...
公共变量
相关的非成员
| bool | operator!=(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs) |
| bool | operator==(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs) |
另请参阅 QTextLayout::setFormats() 和QTextLayout::draw()。
成员变量文档
QTextCharFormat FormatRange::format
指定要应用的格式。
int FormatRange::length
指定格式范围所涵盖的字符数。
int FormatRange::start
指定文本布局中文本内格式范围的起始位置。
相关非成员
bool operator!=(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)
如果lhs 和rhs 中的start 、length 或format 字段中的任何一个值相互不同,则返回 true。
bool operator==(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)
如果lhs 和rhs 中的start 、length 以及format 字段分别包含相同的值,则返回 true。
© 2026 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.