Hello,
I try to enable caching functionality in QWebKit but can't get it to work entirely. i use this code to enable it:

Qt Code:
  1. /** cache */
  2. bool switch_bool = true;
  3. QString cacheDir = QDir::toNativeSeparators( QDir::currentPath() + "/cache" );
  4.  
  5. quint64 num = 5 * 1024 * 1024;
  6.  
  7. QWebSettings::globalSettings()->enablePersistentStorage( cacheDir );
  8. QWebSettings::globalSettings()->setMaximumPagesInCache( 3 );
  9. QWebSettings::globalSettings()->setOfflineStorageDefaultQuota(num);
  10. QWebSettings::globalSettings()->setOfflineWebApplicationCacheQuota(num);
  11. QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, switch_bool);
  12. QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, switch_bool);
  13. QWebSettings::globalSettings()->setAttribute(QWebSettings::LocalStorageEnabled, switch_bool);
  14. QWebSettings::globalSettings()->setOfflineStoragePath(cacheDir);
  15. QWebSettings::globalSettings()->setOfflineWebApplicationCachePath(cacheDir);
  16. QWebSettings::globalSettings()->setLocalStoragePath(cacheDir);
To copy to clipboard, switch view to plain text mode 
and according to the doc that should do the trick, but ... what I got is only cache for the icons, WebpageIcons.db.
The directory exist (but that doesn't mater because dir. is created automatically if not exists).
I try to use this on webview->settings(), webview->page()->settings() but the end result is the same.

Win Qt 4.7.0 - 4.7.2

Any help is more then welcome
Regards