QTextLayout::FormatRange 结构用于为文本布局内容中的指定区域应用额外格式信息。 更多...
QTextCharFormat | format |
int | length |
int | start |
bool | operator!= (const FormatRange & lhs , const FormatRange & rhs ) |
bool | operator== (const FormatRange & lhs , const FormatRange & rhs ) |
另请参阅 QTextLayout::setFormats () 和 QTextLayout::draw ().
指定要应用的格式。
Specifies the number of characters the format range spans.
Specifies the beginning of the format range within the text layout's text.
Returns true if any of the
start
,
length
,或
format
fields in
lhs
and
rhs
contain different values respectively.
返回 true 若
start
,
length
,和
format
fields in
lhs
and
rhs
contain the same values respectively.