You couldn't search for "print" in the manual?
Qt Code:
  1. QPrinter *printer;
  2. // set up printer
  3.  
  4. QWebView v;
  5. v.setHtml(html);
  6. v.show();
  7. v.print(printer);
  8.  
  9. // or without the view widget
  10. QWebPage page;
  11. page.mainFrame()->setHtml(html);
  12. page.mainFrame()->print(printer);
To copy to clipboard, switch view to plain text mode 

QTextDocument has a limited range of allowable HTML and does not cater for the huge range of malformed HTML in the wild. The browser components do, but they are much heavier components.