I would try
SIGNAL("layersWillBeRemoved(QStringList)")

On 04/19/2012 11:09 AM, Tim Sutton wrote:
Hi All

Does anyone know the appropriate way to connect to the new
QgsMapLayerRegistry signal I added in python:

void layersAdded( QList<QgsMapLayer *>  theMapLayers );

I tried:

             QtCore.QObject.connect(QgsMapLayerRegistry.instance(),
                     QtCore.SIGNAL('layersWillBeRemoved(QList<QgsMapLayer*>)'),
                     self.getLayers)

But that doesnt seem to be hitting my slot.

Thanks

tim

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to