FormatRange Struct

struct QTextLayout::FormatRange

Die Struktur QTextLayout::FormatRange wird verwendet, um zusätzliche Formatierungsinformationen auf einen bestimmten Bereich im Inhalt des Textlayouts anzuwenden. Mehr...

Öffentliche Variablen

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)

Detaillierte Beschreibung

Siehe auch QTextLayout::setFormats() und QTextLayout::draw().

Dokumentation der Mitgliedsvariablen

QTextCharFormat FormatRange::format

Gibt das anzuwendende Format an.

int FormatRange::length

Gibt die Anzahl der Zeichen an, über die sich der Formatbereich erstreckt.

int FormatRange::start

Gibt den Beginn des Formatbereichs im Text des Textlayouts an.

Verwandte Nicht-Mitglieder

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

Gibt true zurück, wenn eines der Felder start, length oder format in lhs bzw. rhs unterschiedliche Werte enthält.

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

Gibt true zurück, wenn die Felder start, length und format in lhs bzw. rhs die gleichen Werte enthalten.

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