You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, June 23rd 2009, 7:18pm

QWebView and Caching

i using QVewView to display html generated by programm (QWebView::setHtml()).
but this html contains some graphics (jpg,gif,etc) from network, and i want to cache it.
as i undersund, i need to use QNetworkAccessManager (QWebView::page()::networkAccessManager()) method setCache().
the simplest method i see - to use QNetworkDiskCache, but it don't work =(
to test app i set proxy for QNetworkAccessManager, and i see internet connections every time, applicationn start.
what to do?
i tryed to create my own Cacher (from QAbstractNetworkCacher), but i didn't understand how it works.
i'm sorry for my mind, but it will be very nice to get scheme of connections between QNetworkAccessManager and QAbstractNetworkCache, and some more information about QNetworkCacheMetaData.