[Interest] Print Dialog to print web page

Lucas.Betschart at crypto.ch Lucas.Betschart at crypto.ch
Mon May 7 10:45:22 CEST 2012

 > I am in a work to create a web browser,I modified the fancy browser source code, My problem is how to pop up print dialog to print my web page

    QPrinter printer;
    QPrintDialog *printerDialog = new QPrintDialog(&printer, this);
    if (printerDialog->exec() == QDialog::Accepted) {

This is how I printed from a QTextEdit. This should also be possible with a QWebView Widget.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120507/1fc6fe4d/attachment.html>

More information about the Interest mailing list