Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QPlainTextDocumentLayout class implements a plain text layout for QTextDocument More...
#include <QPlainTextDocumentLayout>
Inherits QAbstractTextDocumentLayout.
This class was introduced in Qt 4.4.
The QPlainTextDocumentLayout class implements a plain text layout for QTextDocument
A QPlainTextDocumentLayout is required for text documents that can be display or edited in a QPlainTextEdit. See QTextDocument::setDocumentLayout().
QPlainTextDocumentLayout uses the QAbstractTextDocumentLayout API that QTextDocument requires, but redefines it partially in order to support plain text better. For instances, it does not operate on vertical pixels, but on paragraphs (called blocks) instead. The height of a document is identical to the number of paragraphs it contains. The layout also doesn't support tables or nested frames, or any sort of advanced text layout that goes beyond a list of paragraphs with syntax highlighting.
This property specifies the width of the cursor in pixels. The default value is 1.
Access functions:
Constructs a plain text document layout for the text document.
Destructs a plain text document layout.
Ensures that block has a valid layout
Requests a complete update on all views.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.5.1 |