Disable page count in QTextDocument
-
The documentation says "If the document is already paginated through a specified height in the pageSize() property it is printed as-is.":http://qt-project.org/doc/qt-5/qtextdocument.html#print
And if it is not paginated then "the current page number is printed at the bottom of each page."I think you need to call
@void QTextDocument::setPageSize(const QSizeF & size)@before calling
@void QTextDocument::print(QPagedPaintDevice * printer) const@