Selection Struct

struct QAbstractTextDocumentLayout::Selection

Die Klasse QAbstractTextDocumentLayout::Selection ist eine Komfortklasse, die die Parameter einer Auswahl definiert. Mehr...

Öffentliche Variablen

QTextCursor cursor
QTextCharFormat format

Detaillierte Beschreibung

Eine Auswahl kann verwendet werden, um einen Teil eines Dokuments anzugeben, der beim Zeichnen von benutzerdefinierten Layouts für QTextDocuments mit der Funktion QAbstractTextDocumentLayout::draw() hervorgehoben werden soll. Sie wird mit cursor und einem format angegeben.

Siehe auch QAbstractTextDocumentLayout und PaintContext.

Dokumentation der Mitgliedsvariablen

QTextCursor Selection::cursor

Diese Variable enthält den Cursor der Auswahl

Der Standardwert ist ein Null-Cursor.

QTextCharFormat Selection::format

Diese Variable enthält das Format der Auswahl

Der Standardwert ist QTextFormat::InvalidFormat.

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