That is a good idea, however wouldn't Qt still be downloading the content and emitting errors when offline?
That is a good idea, however wouldn't Qt still be downloading the content and emitting errors when offline?
Well, that would depend on what your QNetworkReply implementation would be doing.
Cheers,
_
So is it possible to prevent the QNetworkReply downloading?
not sure if you meant to be snarky, but I didn't see an example for this case or method in the documentation that would allow controlling network activity.
Does anyone else know? Or is there a proper way to approach caching rather than hacking QIDevice?
I had assumed that you had tried or at least had a look at the implementation in QNetworkAccessManager, but you are of course welcome to wait.
Cheers,
_
yes you assume right, which should be obvious from initial post...
I found some similar work, so hopefully can build off it:
https://blogs.kde.org/2010/08/28/imp...-qnetworkreply
Bookmarks