Matthias,
have a look at the Layer list widget for PyQGIS applications [1], perhaps
it could fit your needs.
Not sure if it works on recent QGIS versions, though.
Regards,
Germán
-
[1]
http://geotux.tuxfamily.org/index.php/en/component/k2/item/270-tabla-de-contenido-leyenda-para-aplicacione
Hi Matthias
On Wed, Jul 2, 2014 at 4:17 PM, Matthias Ludwig wrote:
>
> 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.)?
> Cau
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
Ar
Hi Matthias,
Martin Dobias just did a legend-tree redesign which was introduced in
QGIS 2.4 and should improve situation for plugin developers and derived
applications a lot.
I don't know if/how this is documented yet.
I hope that Martin can answer this in more detail, perhaps with a
blog-e
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
QAbstrac