I'm trying to print a generated HTML document and on first try it works great. But, only on the first try. When I try to print for the second time, the print job isn't even sent to the spool queue.
Anyone else has had similar trouble?
Here's an exempt of the code I'm using...

Qt Code:
  1. _ui.web_view->load(_tmp_url);
  2. QPrinter printer(QPrinterInfo::defaultPrinter());
  3. printer.setCreator("Foo Bar");
  4. printer.setDocName("Foo Bar");
  5. printer.setNumCopies(_ui.spin_copies->value());
  6. _ui.web_view->print(&printer);
To copy to clipboard, switch view to plain text mode