tags:

views:

17

answers:

0

I am trying to print a webpage by calling the print() function of class WebView. The steps were :

QPrinter printer;
QPrintDialog setup1(printer);
setup1.exec();
browser.print(printer); // browser is a QWebView object

The above are not the exact code, just the steps.When the QPrintDialog shows up, the name of the printer is not there which is understandable as there is no printer attached. The output file's name is also shown. But when I click on Print, the message is

"lp error- No default destination available"