[Qgis-user] Nested group in python

Etienne Tourigny etourigny.dev at gmail.com
Tue May 14 14:56:47 PDT 2013


On Tue, May 14, 2013 at 6:21 PM, David J. Bakeman <dbakeman at comcast.net>wrote:

>  Is it possible to create a group within a group in python?
>
> li = qgis.utils.iface.legendInterface()
> g1 = li.addGroup("g1")
> g2 = li.addGroup("g2", g2)
>

did you try this?

g2 = li.addGroup("g2", g1)


>
> The above seems like it should work but it doesn't.
>
> Thanks.
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130514/e3a76997/attachment.html>


More information about the Qgis-user mailing list