Re: [Qgis-developer] Remove QgsTextAnnotationItem from canvas with Python

2011-01-25 Thread Marco Hugentobler
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,

Re: [Qgis-developer] Remove QgsTextAnnotationItem from canvas with Python

2011-01-25 Thread Marco Hugentobler
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 a

[Qgis-developer] Remove QgsTextAnnotationItem from canvas with Python

2011-01-24 Thread Ziegler Stefan
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