Is it possible to automatically refresh the QGIS map canvas in the background?
I have a .geojson file with the data. This data changes (in case of a simulation) but the map canvas only refreshes after I press the F5 button (refresh). In my case it should refresh the map every 100msec.
In the "layer properties/Rendering" there is a option "Refresh layer at interval (seconds)". I activated this but it has not the function I've searched for.
I found the command for the Python Console: iface.mapCanvas().refreshAllLayers(). This is exactly the function I've searched for. But I need it called periodically in the background. I tried this with a self-written plugin, but without success. (Python script with an endless loop -> GUI freezes)
repainit()
withiface.mapCanvas().refreshAllLayers()
, it will work: gis.stackexchange.com/questions/189634/…