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
ui
->webView
->load
(QUrl("http://qwebpage.comuv.com/WebkitFile.html"));
printer.
setResolution(QPrinter::HighResolution);
dialog.setWindowTitle("Print Bestelling");
if (dialog.
exec() == QDialog::Accepted) {
ui->webView->page()->mainFrame()->print(&printer);
// hoofddoc.mainFrame()->print(&printer);
}
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);
}
To copy to clipboard, switch view to plain text mode
Bookmarks