[Qgis-user] Nested group in python
Etienne Tourigny
etourigny.dev at gmail.com
Tue May 14 15:05:56 PDT 2013
On Tue, May 14, 2013 at 7:02 PM, David J. Bakeman <dbakeman at comcast.net>wrote:
> On 05/14/2013 02:56 PM, Etienne Tourigny wrote:
>
>
>
> 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)
>
> Sorry for the typo yes that is exactly what I tried. Does it work for you?
>
never tried... I guess it depends on your qgis version. This has been
improved in 1.9 (upcoming 2.0), not sure how it works in 1.8
>
>
>>
>> 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/7a70794f/attachment.html>
More information about the Qgis-user
mailing list