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 variable?
In this case you feed the pointer directly to removeItem: qgis.utils.iface.mapCanvas().scene().removeItem( pointer ) > _______________________________________________ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux & Open Source Solutions Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer