The first page of the print out of a QWebView with small fonts and images.
The other pages are normal view a ScreenShot error:Quote:
Note: The error occurs in "windows 7" (not tested on other platforms)
Note: Qt5.0.2, Windows 7 64bit
Attachment 9094
Source:
Code:
QPrinter p; p.setFullPage(true); p.setResolution(300); QPrintPreviewDialog preview(&p); preview.setWindowTitle(ui->myWebView->page()->mainFrame()->title()); preview.exec(); ... ui->myWebView->print(printer); }
I used QPageSetupDialog and corrected in QPrintPreviewDialog but when printing on paper the error happens again.
I also tried using this:
Code:
QPrinter p; p.setFullPage(true); p.setResolution(300); QPrintPreviewDialog preview(&p); preview.setWindowTitle(ui->myWebView->page()->mainFrame()->title()); preview.exec();
But the error persists.
How to solve? Thanks.