Home · All Classes · Modules |
The QPlainTextDocumentLayout class implements a plain text layout for QTextDocument More...
Inherits QAbstractTextDocumentLayout.
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.
Constructs a plain text document layout for the text document.
Reimplemented from QAbstractTextDocumentLayout.blockBoundingRect().
Reimplemented from QAbstractTextDocumentLayout.documentChanged().
Reimplemented from QAbstractTextDocumentLayout.documentSize().
Reimplemented from QAbstractTextDocumentLayout.draw().
Ensures that block has a valid layout
Reimplemented from QAbstractTextDocumentLayout.frameBoundingRect().
Reimplemented from QAbstractTextDocumentLayout.hitTest().
Reimplemented from QAbstractTextDocumentLayout.pageCount().
Requests a complete update on all views.
PyQt 4.10.1 for MacOS | Copyright © Riverbank Computing Ltd and Nokia 2012 | Qt 4.8.4 |