In questa pagina

QTextLayout::FormatRange Struct

struct QTextLayout::FormatRange

La struttura ` QTextLayout::FormatRange ` viene utilizzata per applicare ulteriori informazioni di formattazione a un'area specifica all'interno del contenuto del layout di testo. Per saperne di più...

Variabili pubbliche

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)

Descrizione dettagliata

Vedi anche QTextLayout::setFormats() e QTextLayout::draw().

Documentazione sulle variabili membro

QTextCharFormat FormatRange::format

Specifica il formato da applicare.

int FormatRange::length

Specifica il numero di caratteri che l'intervallo di formattazione copre.

int FormatRange::start

Specifica l'inizio dell'intervallo di formattazione all'interno del testo del layout.

Elementi correlati non membri

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

Restituisce true se uno qualsiasi dei campi start, length o format presenti in lhs e rhs contiene valori diversi, rispettivamente.

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

Restituisce "true" se i campi " start", " length" e " format " presenti rispettivamente in " lhs " e " rhs " contengono gli stessi valori.

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