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.
8snx.jpg

What am i doing wrong?

any help is appreciated,
Delphi


Qt Code:
  1. ui->webView->load(QUrl("http://qwebpage.comuv.com/WebkitFile.html"));
  2.  
  3. QPrinter printer;
  4. printer.setResolution(QPrinter::HighResolution);
  5.  
  6. QPrintDialog dialog(&printer);
  7. dialog.setWindowTitle("Print Bestelling");
  8. if (dialog.exec() == QDialog::Accepted) {
  9.  
  10. ui->webView->page()->mainFrame()->print(&printer);
  11. // hoofddoc.mainFrame()->print(&printer);
  12. }
To copy to clipboard, switch view to plain text mode