The QWebSettings::setOfflineWebApplicationCacheQuota() method deletes all records from the application cache database before it sets the cache quota. This is unexpected and undocumented. It is not possible to change -- even INCREASE -- the quota without discarding all the old application cache data. Note: there is already a bug filed to add an API for managing quotas in the app cache: https://bugs.webkit.org/show_bug.cgi?id=48194
Please follow this to report bugs on QtWebKit: http://trac.webkit.org/wiki/QtWebKitBugs Would you mind attaching a test case?
This seems to be done intentionally to match the behavior of other platforms (mac & gtk). http://trac.webkit.org/changeset/56140
The behavior is intentional.