QAbstractTextDocumentLayout::Selection Struct
struct QAbstractTextDocumentLayout::SelectionDie Klasse „ QAbstractTextDocumentLayout::Selection “ ist eine Hilfs-Klasse, die die Parameter einer Auswahl definiert. Mehr...
Öffentliche Variablen
Ausführliche Beschreibung
Eine Auswahl kann verwendet werden, um einen Teil eines Dokuments anzugeben, der beim Zeichnen benutzerdefinierter Layouts für QTextDocuments mit der Funktion ` QAbstractTextDocumentLayout::draw()` hervorgehoben werden soll. Sie wird mithilfe von ` cursor ` und einem ` format` angegeben.
Siehe auch „ QAbstractTextDocumentLayout “ und „ PaintContext “.
Dokumentation zu Membervariablen
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 lautet „ QTextFormat::InvalidFormat “.
© 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.