[Qgis-developer] PyQGIS: load groups from qlr

alugli1977 at alice.it alugli1977 at alice.it
Sat Feb 13 10:06:15 PST 2016


Hi,
I have to programmatically load a qlr file in a PyQGIS script.
Now my code is:xxx = QgsMapLayer.fromLayerDefinitionFile("C:\\xxx.qlr")
but in this way it doesn't manage groups inside qlr file and layers are reported in alphabetical order along the tree view.
How is it possible to manage both groups and layers stored in a qlr file?
Thank you in advance for your attention
Andrea Lugli

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


More information about the Qgis-developer mailing list