Note: I was probably wrong about the advice I gave. Most likely the page wont be structured well enough to use XQuery.

Qt Code:
  1. ui.webView->page()->mainFrame()->toHtml();
To copy to clipboard, switch view to plain text mode 

That will get you the page source.