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?

-- 





Comune di Trento 

via Belenzani, 19 - 38122 Trento | C.F e P. IVA: 
00355870221

tel. +39 0461.884111 | www.comune.trento.it 
<http://www.comune.trento.it> 


_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to