Monday, 20 August 2018

python - How to refresh QgsMapcanvas?


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



Answer



I use


self.iface.mapCanvas().refresh()            

in Time Manager plugin and it works. You can check the source on Github.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...