PDA

View Full Version : QWebpage print bug



Delphi
17th June 2013, 20:54
hi,

because the subset of Qdocument is insufficient.

i am using a Qwebpage to render the html. But when i try to print it there is something wrong.
9165

What am i doing wrong?

any help is appreciated,
Delphi



ui->webView->load(QUrl("http://qwebpage.comuv.com/WebkitFile.html"));

QPrinter printer;
printer.setResolution(QPrinter::HighResolution);

QPrintDialog dialog(&printer);
dialog.setWindowTitle("Print Bestelling");
if (dialog.exec() == QDialog::Accepted) {

ui->webView->page()->mainFrame()->print(&printer);
// hoofddoc.mainFrame()->print(&printer);
}

Delphi
18th June 2013, 13:47
Its a bug,


Error printer from QWebView (http://bugreports.qt-project.org/browse/QTBUG-31601)

Or

QPrintPreviewDialog + QWebView print wrongly (http://bugreports.qt-project.org/browse/QTBUG-29843)

Or

When printing a QWebFrame using QPrinter::HighResolution then it will not be rendered correctly (http://bugreports.qt-project.org/browse/QTBUG-29959)