[Qgis-developer] Wierd issue with Python and triggerRepaint()

Gary Sherman gsherman at geoapt.com
Thu Jan 22 14:52:22 PST 2015


I have a plugin that makes modifications to a memory layer, then calls 
triggerRepaint() to refresh. Unfortunately, it doesn't refresh the 
layer. If I open the Python console before making the mods, it works 
from the console:

lyr = iface.activeLayer()
lyr.triggerRepaint()

If I turn off caching in Settings, I don't have a problem with my plugin.

You rendering experts have any ideas?

Thanks,

-gary

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Gary Sherman

Founder, QGIS Project
Consulting: geoapt.com
Publishing: locatepress.com

We work virtually anywhere
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the Qgis-developer mailing list