[webkit-qt] how to shutdown QNetworkAccessManager

Markus Goetz Markus.Goetz at nokia.com
Tue Mar 15 02:59:39 PDT 2011

On Tuesday, March 15, 2011 10:19:15 am ext 周鹏 wrote:

> 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?

You need to override QNetworkAccessManager::createRequest().
This function is called for every file requested by QtWebkit.
There you can also return a custom QNetworkReply which your crawled data.

See http://doc.qt.nokia.com/qq/32/qq32-webkit-protocols.html

Good luck!

More information about the webkit-qt mailing list