[QGIS-Developer] Invalidating a QgsImageCache entry

Michael Schmuki michael at opengis.ch
Wed Apr 16 13:01:10 PDT 2025


Hi QGIS Devs

I have tried to add an image decorator to the map canvas, with a .png
that gets automatically re-generated by some logic in the project
Python macro.

Then I found out that QgsDecorationImage uses the app wide
QgsImageCache and won't get updated until the
"FileModifiedCheckTimeout" in the QgsImageCache of 30s has occurred.

I see no way to manually invalidate a cache entry (Python and C++) and
wanted to ask if there is a reason behind this, or if I'm missing
something.

Thanks

Michael


More information about the QGIS-Developer mailing list