Qwebview and printer issue(paper size)
I have got a QWebView widget in my application. it shows HTML very well.
When it comes to printing the html page, it does not like the defined printer properties:
QPrinter printer; printer.setOrientation(QPrinter::Landscape); printer.setPaperSize(QPrinter::A6); printer.setPageMargins(5,5,5,5,QPrinter::Millimeter); printer.setFullPage(true); ui->webView->print(&printer);
As you see I want to print on an A6 paper(A6 paper is a quarter of an A4). In result, all the time it gives me Letter standard page rather than A6.
I have prepared a project which reflect the issue and it's downloadable from the link below:
Thanks in advance