View Full Version : QTextEdit print
cya-st
30th November 2011, 19:28
Hello!
When I printed content from QTextEdit, then appears page number in footer of print preview dialog. How can I change page numbers in this footer?
stampede
30th November 2011, 22:11
You can find that some users requested turning off the page numbering, but it looks like its still to be done (https://bugreports.qt.nokia.com//browse/QTBUG-1688).
Maybe you can use QTextDocument::drawContents (http://doc.qt.nokia.com/latest/qtextdocument.html#drawContents) to render the QTextEdit::document() (http://doc.qt.nokia.com/latest/qtextedit.html#document) and then manually render the page number with QPainter::drawText (http://doc.qt.nokia.com/latest/qpainter.html#drawText-10).
cya-st
1st December 2011, 09:49
Ok, Thanks for answer.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.