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. _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
