PDA

View Full Version : [QWebView] Control image caching



mentalmushroom
4th January 2012, 09:23
Hello. I need to find the way to control image caching in QWebView. I see there are some settings like QNetworkRequest::CacheLoadControlAttribute, but in Qt documentation it is said "the default QNetworkAccessManager implementation does not support caching". So not really clear. Could somebody point me out how caching behavior can be changed? Code samples are very much appreciated.

Also what is the default behavior? According to the QNetworkRequest::CacheLoadControlAttribute explanation, the default value is QNetworkRequest::PreferNetwork, but if network access manager doesn't support caching by default, it won't work, I guess.