<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">I prefer:</font></div><div><span class="Apple-style-span" style><br></span></div><span class="Apple-style-span" style>QgsMapLayerRegistry.instance().</span><span class="Apple-style-span" style>layersWillBeRemoved</span><span class="Apple-style-span" style>.connect(self.</span><span class="Apple-style-span" style>getLayers)</span><div>
<font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">- Nathan<br></font><br><div class="gmail_quote">On Thu, Apr 19, 2012 at 7:14 PM, Denis Rouzaud <span dir="ltr"><<a href="mailto:denis.rouzaud@gmail.com">denis.rouzaud@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I would try<br>
SIGNAL("layersWillBeRemoved(QStringList)")<div class="im"><br>
<br>
On 04/19/2012 11:09 AM, Tim Sutton wrote:
<blockquote type="cite">
<pre>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>
</div></div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><br></div>