Question

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.

Was it helpful?

Solution

You want to turn off the AutoLoadImages:

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

Using the QWebSettings::AutoLoadImages attribute.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top