Nesta página

QTextLayout::FormatRange Struct

struct QTextLayout::FormatRange

A estrutura ` QTextLayout::FormatRange ` é usada para aplicar informações adicionais de formatação a uma área específica no conteúdo do layout de texto. Mais...

Variáveis 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)

Descrição detalhada

Veja também ` QTextLayout::setFormats()` e ` QTextLayout::draw()`.

Documentação sobre variáveis de membro

QTextCharFormat FormatRange::format

Especifica o formato a ser aplicado.

int FormatRange::length

Especifica o número de caracteres que o intervalo de formatação abrange.

int FormatRange::start

Especifica o início do intervalo de formatação dentro do texto do layout.

Não-membros relacionados

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

Retorna “true” se qualquer um dos campos start, length ou format em lhs e rhs contiver valores diferentes, respectivamente.

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

Retorna `true` se os campos ` start`, ` length` e ` format ` em ` lhs ` e ` rhs ` contiverem, respectivamente, os mesmos valores.

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