thiagoalencar22
30th October 2009, 11:53
Whenever QWebView.print() is used, the print output is broken into several pages, as if the page is really tiny (already tried .setPageSize(QPrinter::A4) - no luck). Plus, CSS formatting doesn't seem to apply to the print output.
QPrinter printer;
QPrintDialog *dlg = new QPrintDialog(&printer, this);
if (dlg->exec() != QDialog::Accepted)
return;
m_ui->webViewRoute_2->print(&printer);
Is there any way to print the page as you see it in QWebView?
Thanks in advance,
Thiago F Alencar
QPrinter printer;
QPrintDialog *dlg = new QPrintDialog(&printer, this);
if (dlg->exec() != QDialog::Accepted)
return;
m_ui->webViewRoute_2->print(&printer);
Is there any way to print the page as you see it in QWebView?
Thanks in advance,
Thiago F Alencar