On 1/28/15 8:27 AM, Martin Dobias wrote:
Hi Gary
I cannot replicate your problem (tried 2.6 and master). I have
attached a very simple test plugin that first creates an layer and
then adds a feature on a click of a button. With the triggerRepaint()
call the canvas is refreshed correctly (when caching is enabled on or
not). Let me know if that code works for you - maybe your problem is
somewhere else or it is more complex.
Cheers
Martin
Martin:
Your example works fine---must be something else going on in my code.
I'll have to dig deeper.
Thanks for taking the time to put together an example!
-gary
On Fri, Jan 23, 2015 at 5:52 AM, Gary Sherman <gsher...@geoapt.com
<mailto:gsher...@geoapt.com>> wrote:
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 <http://geoapt.com>
Publishing: locatepress.com <http://locatepress.com>
We work virtually anywhere
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org <mailto:Qgis-developer@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Gary Sherman
Founder, QGIS Project
Consulting: geoapt.com
Publishing: locatepress.com
We work virtually anywhere
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer