Re: [QGIS-Developer] triggerRepaint()

2020-03-26 Thread Nyall Dawson
On Thu, 26 Mar 2020 at 00:44, Luca Manganelli wrote: > > Hello, > > I discovered that triggerRepaint() is working on: > > QgsMapCanvas.currentLayer() > > but NOT in one of the layers in: > > QgsProject.instance().layers() > > I use triggerRepaint to force the update in the mapcanvas, after a P

[QGIS-Developer] triggerRepaint()

2020-03-25 Thread Luca Manganelli
Hello, I discovered that triggerRepaint() is working on: QgsMapCanvas.currentLayer() but NOT in one of the layers in: QgsProject.instance().layers() I use triggerRepaint to force the update in the mapcanvas, after a Postgis sql INSERT query. Is there another way to do this? -- Comu