[QGIS-Developer] pyqgis3: how to expand/collapse a single group in legend?

Luca Manganelli luca.manganelli at comune.trento.it
Wed Feb 12 02:07:53 PST 2020


Nevermind, I found the answer here:

https://gis.stackexchange.com/questions/323333/expand-or-collapse-layer-groups-in-pyqgis3

Il giorno mer 12 feb 2020 alle ore 11:03 Luca Manganelli <
luca.manganelli at comune.trento.it> ha scritto:

> Hello,
>
> before, in pyqgis 2, we could use:
>
> self.iface.legendInterface().setGroupExpanded(nrgroup, True or False)
>
> and, now, in pyqgis 3?
>
> Thank you in advance :-)
>
> --
> Luca Manganelli
> Assistente informatico
> Servizio Innovazione e Sistemi digitali
> Via Ezio Maccani 148
> 38121 Trento (TN)
>


-- 
Luca Manganelli
Assistente informatico
Servizio Innovazione e Sistemi digitali
Via Ezio Maccani 148
38121 Trento (TN)

-- 





Comune di Trento 

via Belenzani, 19 - 38122 Trento | C.F e P. IVA: 
00355870221

tel. +39 0461.884111 | www.comune.trento.it 
<http://www.comune.trento.it> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200212/391a6b73/attachment.html>


More information about the QGIS-Developer mailing list