[webkit-qt] how to shutdown QNetworkAccessManager

周鹏 zhoupeng19 at 126.com
Tue Mar 15 02:19:15 PDT 2011

   I use QWebFrame()::setHtml() function to load a page from local file system, and this page contains some external resource,but i don't need QNetworkAccessManager to download these stuff for me,because i need to download these through my own crawler.
       <script src="http://www.***.com/1.js" language="javascript" type="text/javascript"></script>

document.write("<h1>test</h1><img src=http://www.***.com/1.jpg>")

First i use QWebFrame()::setHtml() load this page,because there is a js file need to download,so, i need qtwebkit tell me the url,and i download the js through my crawler. When the js is download,i use QWebFrame()::evaluateJavaScript() to execute it, when call  evaluateJavaScript,i need to get the url of the img.This is my  expect output :
<h1>test</h1><img src=http://www.***.com/1.jpg>

So, can anybody tell me :
1) I don't need QNetworkAccessManager to download anything, how to shutdown it?
2) When a page need to load some external resource, how to get the url?


        zhoupeng19 at 126.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110315/4fdff170/attachment.html>

More information about the webkit-qt mailing list