[Qgis-developer] PyQgis : Sorting alphabetically groups into legend widget

PIERRE Sylvain sylvain.pierre at bas-rhin.fr
Mon Jul 6 04:04:31 PDT 2015


Hello,

In a python script I want to sort by name groups inside legend widget.
I've done some test with QgsLayerTreeModel and QgsLayerTreeview but with no result
What's the best (an simple!) way to do that?

Thanks

Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150706/9aeadfb5/attachment.html>


More information about the Qgis-developer mailing list