Sur cette page

QTextLayout::FormatRange Struct

struct QTextLayout::FormatRange

La structure QTextLayout::FormatRange est utilisée pour appliquer des informations de formatage supplémentaires à une zone spécifiée du contenu de la mise en page de texte. Plus d'informations...

Variables publiques

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)

Description détaillée

Voir aussi QTextLayout::setFormats() et QTextLayout::draw().

Documentation sur les variables membres

QTextCharFormat FormatRange::format

Spécifie le format à appliquer.

int FormatRange::length

Spécifie le nombre de caractères que couvre la plage de format.

int FormatRange::start

Spécifie le début de la plage de format dans le texte de la mise en page.

Non-membres associés

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

Renvoie un résultat positif si l'un des champs start, length, ou format dans lhs et rhs contient des valeurs différentes.

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

Renvoie un résultat positif si les champs start, length, et format dans lhs et rhs contiennent les mêmes valeurs respectivement.

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