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
[email protected]
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
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer