The QTextLayout::FormatRange 結構用於為文本布局內容中的指定區域應用額外格式信息。 更多...
| 頭: | #include <FormatRange> |
| qmake: | QT += gui |
| QTextCharFormat | format |
| int | length |
| int | start |
| bool | operator!= (const QTextLayout::FormatRange & lhs , const QTextLayout::FormatRange & rhs ) |
| bool | operator== (const QTextLayout::FormatRange & lhs , const QTextLayout::FormatRange & rhs ) |
The QTextLayout::FormatRange 結構用於為文本布局內容中的指定區域應用額外格式信息。
另請參閱 QTextLayout::setFormats () 和 QTextLayout::draw ().
指定要應用的格式。
Specifies the numer 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.