[Qgis-developer] QGIS standalone app - layer tree, legend and co.
Arnaud Morvan
arnaud.morvan at camptocamp.com
Wed Jul 2 03:11:32 PDT 2014
Yes, you could use QgsMapLayerRegistry for adding/removing layer and
QgsLegendInterface for manage groups and layer visiblity,
but new layer tree is more powerfull.
Here is a previous response of Martin on same subject :
http://lists.osgeo.org/pipermail/qgis-developer/2014-June/033529.html
Arnaud
Le 02/07/2014 11:17, Matthias Ludwig a écrit :
> Hi,
>
> I'am writing a data viewer as python qgis standalone application. Is it possible to use the QgisInterface and other classes (like QgsLegendInterface) for layer handling (adding, removing, activation, etc.)?
> Cause I didn't found a way I have written my own layer model based on qts QAbstractListModel. It's working more or less, but I would prever a nativ solution if available.
>
> Regards
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
Arnaud Morvan
Ingénieur logiciel
Tél: +33 (0)4 79 26 57 95
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com
More information about the Qgis-developer
mailing list