I have a standalone application which uses the QGS api to view and query map layers. One layer is a WMS-C layer which automatically caches tiles which is great. I want to also activate a setting which is present in QGIS but I can't work out how to implement it in my app, namely:
- Use render caching... (Settings -> Options -> Rendering)
I found the QSettings key for this in QGIS by browsing the output of:
from PyQt4.QtCore import QSettings
s = QSettings().allKeys()
for k in s:
print k
The one I need to access/emulate/implement is:
Qgis/enable_render_caching
Where can I activate/implement these settings in my standalone app? Is this the setting that is read by QgsMapCanvas.setCachingEnabled(bool)
?