1

I'm using QWebPage to load needed site page. But QWebPage loading all additional resources: images, csses, and so on. Is there any way to present this behavior and cancel loading of images?

Only idea that I have - to write custom QNetworkConnectionManager, which will return some dummy picture instead of requested. But this looks a bit of complicated.

cleg
  • 4,862
  • 5
  • 35
  • 52
  • 2
    If you would like to prevent loading specific type of images or load only specific type of images the answer is here http://stackoverflow.com/questions/4575245/how-to-tell-qwebpage-not-to-load-specific-type-of-resources – Piotr Dobrogost Jan 07 '11 at 15:44

1 Answers1

1

You want to turn off the AutoLoadImages:

http://doc.trolltech.com/4.4/qwebsettings.html

Using the QWebSettings::AutoLoadImages attribute.

Phil Hannent
  • 12,047
  • 17
  • 71
  • 118