Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QTextLayout::FormatRange Class Reference

\reentrant More...

#include <qtextlayout.h>

+ Collaboration diagram for QTextLayout::FormatRange:

Public Attributes

int start
 
int length
 
QTextCharFormat format
 

Friends

bool operator== (const FormatRange &lhs, const FormatRange &rhs)
 \variable QTextLayout::FormatRange::start Specifies the beginning of the format range within the text layout's text.
 
bool operator!= (const FormatRange &lhs, const FormatRange &rhs)
 Returns true if any of the {start}, {length}, or {format} fields in lhs and rhs contain different values respectively.
 

Detailed Description

\reentrant

The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content. \inmodule QtGui

See also
QTextLayout::setFormats(), QTextLayout::draw()

Definition at line 107 of file qtextlayout.h.

Friends And Related Symbol Documentation

◆ operator!=

bool QTextLayout::FormatRange::operator!= ( const FormatRange lhs,
const FormatRange rhs 
)
friend

Returns true if any of the {start}, {length}, or {format} fields in lhs and rhs contain different values respectively.

Definition at line 114 of file qtextlayout.h.

◆ operator==

bool QTextLayout::FormatRange::operator== ( const FormatRange lhs,
const FormatRange rhs 
)
friend

\variable QTextLayout::FormatRange::start Specifies the beginning of the format range within the text layout's text.

\variable QTextLayout::FormatRange::length Specifies the number of characters the format range spans.

\variable QTextLayout::FormatRange::format Specifies the format to apply.

Returns true if the {start}, {length}, and {format} fields in lhs and rhs contain the same values respectively.

Definition at line 112 of file qtextlayout.h.

Member Data Documentation

◆ format

QTextCharFormat QTextLayout::FormatRange::format

◆ length

int QTextLayout::FormatRange::length

◆ start

int QTextLayout::FormatRange::start

The documentation for this class was generated from the following files: