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。
© 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.