[webkit-qt] Preventing the download of main sites: QWebView
Benjamin Poulain
benjamin.poulain at nokia.com
Tue Jan 4 13:00:17 PST 2011
On 01/04/2011 08:58 PM, ext Ryan wrote:
> QWebView* qwv = new QWebView();
> qwv->load( (QUrl)"http://www.yahoo.com/" );
>
> Is it possible to selectively download images with QWebView? I only want
> to download select images if certain criteria are met on the page I'm
> loading. The purpose of this is to save bandwidth.
You could add you own network access manager (QNetworkAccessManager) to
QtWebKit, and return an empty reply when the url asked does not meet
your criteria.
Rekonq and Arora implement adblock like that.
cheers,
Benjamin
More information about the webkit-qt
mailing list