Am Dienstag, 25. Januar 2011, um 10.05:36 schrieb
luca_mangane...@comune.trento.it:
> qgis-developer-boun...@lists.osgeo.org scritti il 25/01/2011 09.40.24
>
> > Hi Stefan
>
> > If the text annotation is selected, you could do this:
> And what if I have a pointer of that textannotation stored in
qgis-developer-boun...@lists.osgeo.org scritti il 25/01/2011 09.40.24
> Hi Stefan
> If the text annotation is selected, you could do this:
And what if I have a pointer of that textannotation stored in a variable?
___
Qgis-developer mailing list
Qgis-d
Hi Stefan
If the text annotation is selected, you could do this:
selectedItems = qgis.utils.iface.mapCanvas().scene().selectedItems()
for i in range (len(selectedItems)):
item=qgis.utils.iface.mapCanvas().scene().removeItem(selectedItems[i])
Regards,
Marco
Am Dienstag, 25. Januar 2011,
Hi
is there a way to remove text annotations from the map canvas with Python?
regards
Stefan
Mit freundlichem Gruss
Stefan Ziegler
Leiter amtliche Vermessung
Amt für Geoinformation
Rötistrasse 4
4501 Solothurn
032 627 75 96
___
Qgis-developer mailing