[webkit-qt] How to set Cache mechanism of QNetworkAccessManager- PreferCache

kb at inf.u-szeged.hu kb at inf.u-szeged.hu
Mon Apr 12 15:24:27 PDT 2010


> On Mon, Apr 12, 2010 at 1:26 PM, <siddharth.mathur at nokia.com> wrote:
>
>> Tarandeep,
>>
>> Something like this....
>>
>>  request.setAttribute(QNetworkRequest::CacheLoadControlAttribute,
>> QNetworkRequest::PreferCache);
>>
>>
> where should I do this? I mean which class I need to reimplement? The
> NetworkAccessManager class ?
> which function I need to override?
>
> Thanks,
> Tarandeep
>

In the performance project - http://gitorious.org/qtwebkit/performance -
we do the same that you would do. Look into the common/*network* files!
Cheers!

balazs



More information about the webkit-qt mailing list