It often happens when server returns anything but 200 status code. In your case there is "401 - Unauthorized" status code.
This link might be helpful for you: http://www.qtcentre.org/threads/37122-Detecting-finished-download-of-HTML-content-for-QWebView