size : const QSizeF
Returns the actual size of the document. This is equivalent to documentLayout()->documentSize();
The size of the document can be changed either by setting a text width or setting an entire page size.
Note that the width is always >= pageSize().width().
By default, for a newly-created, empty document, this property contains a configuration-dependent size.
This property was introduced in Qt 4.2.
Access functions:
QSizeF size () const
See also setTextWidth(), setPageSize(), and idealWidth().
void QTextDocument::drawContents ( QPainter * p, const QRectF & rect = QRectF() )
Draws the content of the document with painter p, clipped to rect. If rect is a null rectangle (default) then the document is painted unclipped.
This function was introduced in Qt 4.2.