this is what is done inside qgis when identify a feature https://github.com/qgis/QGIS/blob/master/src/app/qgsidentifyresultsdialog.cpp#L1508
probably you forgot to do highlight.show() regards Luigi Pirelli ************************************************************************************************** * LinkedIn: https://www.linkedin.com/in/luigipirelli * Elance: https://www.elance.com/s/edit/luigipirelli/ * GitHub: https://github.com/luipir * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli * Mastering QGIS: https://www.packtpub.com/application-development/mastering-qgis ************************************************************************************************** On 24 September 2015 at 21:46, paulopires16 <[email protected]> wrote: > Thanks Luigi Pirelli > > I'm trying... > > QgsHighlight(self.iface.mapCanvas(), feature.geometry(), layer) > QgsHighlight(self.iface.mapCanvas(), > QgsGeometry.fromPoint(QgsPoint(x,y)).buffer(10000,5), layer) > QgsHighlight(self.iface.mapCanvas(),feature.geometry().buffer(10000,5), > layer) > self.iface.mapCanvas().refresh() > > Nothing... > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Highlight-geometry-when-zoom-to-it-tp5225950p5225995.html > Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
