2
votes

How to prevent QWebView from loading images (for traffic saving reasons)?

1
You can't do it just using QWebView becuase it download whole site and then just display what you want. If you need to skip images, you have to do it another way - Blood
@Blood: is there any easy way to do it? In fact, I don't need QWebView itself, I don't need to display the page and I'm working with QWebPage that I get from my QWebView. I only use web view for downloading the page. - Violet Giraffe

1 Answers

4
votes

It can be disabled in QWebView's settings:

web_view = QWebView()
web_view.settings().setAttribute(QWebSettings.AutoLoadImages, False)