[Qt-interest] How to get the source code of a web page with QWebkit

Orionis darkorionis at gmail.com
Fri Jul 2 01:31:28 CEST 2010


Hello,

I would like to get the code code of a web page downloaded with QWebView.

I have tried to use :

     - QWebFrame::toHtml() but the result is not the downloaded source code.
     - QWebElement::toInnerXml() which gives a partial source code (the
doctype is missing).
     - QNetworkReply::readAll() but it seems to block QWebFrame for
rendering.

Do you have any solution ?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100702/908606d9/attachment.html 


More information about the Qt-interest-old mailing list