[Qgis-developer] Syntax for using QList<QgsMapLayer *> signal in
python
Nathan Woodrow
madmanwoo at gmail.com
Thu Apr 19 05:21:24 EDT 2012
I prefer:
QgsMapLayerRegistry.instance().layersWillBeRemoved.connect(self.getLayers)
- Nathan
On Thu, Apr 19, 2012 at 7:14 PM, Denis Rouzaud <denis.rouzaud at gmail.com>wrote:
> 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
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120419/1dc64cf3/attachment.html
More information about the Qgis-developer
mailing list