Auf dieser Seite

QTextLayout::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)

Ausführliche Beschreibung

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

Dokumentation zu Member-Variablen

QTextCharFormat FormatRange::format

Legt das anzuwendende Format fest.

int FormatRange::length

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

int FormatRange::start

Gibt den Anfang des Formatbereichs innerhalb des Textes 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 “ und „ rhs “ jeweils 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 “ und „ rhs “ jeweils dieselben Werte enthalten.

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