En esta página

QTextLayout::FormatRange Struct

struct QTextLayout::FormatRange

La estructura QTextLayout::FormatRange se utiliza para aplicar información de formato adicional a un área específica del contenido del diseño de texto. Más...

Variables públicas

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)

Descripción detallada

Véase también QTextLayout::setFormats() y QTextLayout::draw().

Documentación de Variables Miembro

QTextCharFormat FormatRange::format

Especifica el formato a aplicar.

int FormatRange::length

Especifica el número de caracteres que abarca el rango de formato.

int FormatRange::start

Especifica el inicio del intervalo de formato dentro del texto de la presentación de texto.

Relacionados No miembros

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

Devuelve true si alguno de los campos start, length, o format en lhs y rhs contienen valores diferentes respectivamente.

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

Devuelve true si los campos start, length, y format en lhs y rhs contienen los mismos valores respectivamente.

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