FormatRange Class

( QTextLayout::FormatRange )

The QTextLayout::FormatRange 结构用于为文本布局内容中的指定区域应用额外格式信息。 更多...

头: #include <FormatRange>

公共变量

QTextCharFormat format
int length
int start

详细描述

The QTextLayout::FormatRange 结构用于为文本布局内容中的指定区域应用额外格式信息。

另请参阅 QTextLayout::setAdditionalFormats () 和 QTextLayout::draw ().

成员变量文档编制

QTextCharFormat FormatRange:: format

指定要应用的格式。

int FormatRange:: length

Specifies the numer of characters the format range spans.

int FormatRange:: start

Specifies the beginning of the format range within the text layout's text.