In questa pagina

QAbstractTextDocumentLayout::Selection Struct

struct QAbstractTextDocumentLayout::Selection

La classe ` QAbstractTextDocumentLayout::Selection ` è una classe di utilità che definisce i parametri di una selezione. Per saperne di più...

Variabili pubbliche

QTextCursor cursor
QTextCharFormat format

Descrizione dettagliata

Una selezione può essere utilizzata per specificare una parte di un documento che deve essere evidenziata durante la creazione di layout personalizzati per QTextDocument con la funzione QAbstractTextDocumentLayout::draw(). Viene specificata utilizzando cursor e un format.

Vedi anche QAbstractTextDocumentLayout e PaintContext.

Documentazione sulle variabili membro

QTextCursor Selection::cursor

Questa variabile contiene il cursore della selezione

Il valore predefinito è un cursore nullo.

QTextCharFormat Selection::format

Questa variabile contiene il formato della selezione

Il valore predefinito è 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.