<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I would try<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
SIGNAL("layersWillBeRemoved(QStringList)")<br>
<br>
On 04/19/2012 11:09 AM, Tim Sutton wrote:
<blockquote
cite="mid:CALCNqkYk+arwMAHc1PE4_hFeV5EhQ4dz-irC3yJwHdBVeAN--Q@mail.gmail.com"
type="cite">
<pre wrap="">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
</pre>
</blockquote>
</body>
</html>