The PySide.QtGui.QPlainTextDocumentLayout class implements a plain text layout for PySide.QtGui.QTextDocument
A PySide.QtGui.QPlainTextDocumentLayout is required for text documents that can be display or edited in a PySide.QtGui.QPlainTextEdit . See QTextDocument.setDocumentLayout() .
PySide.QtGui.QPlainTextDocumentLayout uses the PySide.QtGui.QAbstractTextDocumentLayout API that PySide.QtGui.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.
Parameters: | document – PySide.QtGui.QTextDocument |
---|
Constructs a plain text document layout for the text document .
Parameters: | block – PySide.QtGui.QTextBlock |
---|---|
Return type: | PySide.QtCore.qreal |
Return type: | PySide.QtCore.int |
---|
This property specifies the width of the cursor in pixels. The default value is 1.
Parameters: | block – PySide.QtGui.QTextBlock |
---|
Ensures that block has a valid layout
Parameters: | block – PySide.QtGui.QTextBlock |
---|
Requests a complete update on all views.
Parameters: | width – PySide.QtCore.int |
---|
This property specifies the width of the cursor in pixels. The default value is 1.
Parameters: | newWidth – PySide.QtCore.qreal |
---|
Return type: | PySide.QtCore.qreal |
---|