[Qgis-developer] Re: [Solved] Python: change query of PostGIS layer

Ian Packham i.packham at ucd.ie
Thu May 3 06:59:07 PDT 2012


OK, I found the answer to my sub question:

iface.legendInterface().setLayerVisible(vlayer,False)

This time I found the answer from this link:

http://gis.stackexchange.com/questions/1731/how-to-toggle-layer-visibility-in-qgis-using-python

But QgsLegendInterface is not referenced in QgsVectorLayer or QgsMapLayer...

Will stop complaining now and get on with programming, sorry.

Ian

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Python-change-query-of-PostGIS-layer-tp4940574p4949328.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list