I am using Qgis 1.7 and I want to refresh the mapcanvas so I am using refresh() function of QgsMapcanvas class and Nothing is happening to the Map Canvas. I am using Python for customizing
2 Answers
I use
self.iface.mapCanvas().refresh()
in Time Manager plugin and it works. You can check the source on Github.
In QGis 2.16, with refresh() still nothing is happening. I use this command to refresh all layers:
self.iface.mapCanvas().refreshAllLayers()
-
1