<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19222"></HEAD>
<BODY>
<DIV class=gmail_quote>
<DIV><SPAN><SPAN class=638024008-07052012><FONT size=2
face=Arial> > </FONT></SPAN>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 </SPAN><BR><SPAN
class=638024008-07052012><FONT size=2 face=Arial> </FONT></SPAN></DIV><FONT
size=2 face=Arial></FONT>
<DIV><BR><SPAN class=638024008-07052012><FONT size=2
face=Arial> QPrinter printer;<BR>
QPrintDialog *printerDialog = new QPrintDialog(&printer,
this);<BR> if (printerDialog->exec() == QDialog::Accepted)
{<BR>
ui->textEditNote->print(&printer);<BR>
}</FONT></SPAN></DIV>
<DIV><SPAN class=638024008-07052012><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=638024008-07052012><FONT size=2 face=Arial>This is how I
printed from a QTextEdit. This should also be possible with a QWebView
Widget.</FONT></SPAN></DIV></DIV></BODY></HTML>