I would like to understand which is the difference between print() and drawContenst() methods of QTextDocument.
I know that print() can handle page breaking while drawContents not.
So far, I have been using drawContents() because I can handle easily complex layout.
However, if I have to put in the TextDocument a complex html I use
document->setHtml(string).
But: when I use drawContents(&painter,printer->paperRect())
I get always a very small and unreadable square of printed text on the output pages.
If I use a transformation like:
document->adjustSize();
QTransform tra;
tra.scale(11,11);
painter.setTransform(tra);
document->adjustSize();
QTransform tra;
tra.scale(11,11);
painter.setTransform(tra);
To copy to clipboard, switch view to plain text mode
the page is visible. Why shall I use the transofmration?
Is there a method to set a transformation independent of the printer device?
Thank you
Bookmarks