[QGIS-Developer] Implement polygon feature selection using QgsMapTool in QgsMapCanvas

Denis Rouzaud denis.rouzaud at gmail.com
Fri Jun 15 04:36:30 PDT 2018


Hi,

You should be able to sub-class QgsMapToolIdentify or
QgsMapToolIdentifyFeature
see the documentation
https://qgis.org/pyqgis/master/gui/Map/QgsMapToolIdentify.html
https://qgis.org/pyqgis/master/gui/Map/QgsMapToolIdentifyFeature.html

Denis

Le ven. 15 juin 2018 à 04:42, Ashutosh Vaish <ashutoshvaish6397 at gmail.com>
a écrit :

> I'm trying to develop a plugin which contains it's own QgsMapCanvas. I
> need the user to select a feature on the map canvas which requires the map
> tool to replicate the function of the Select Feature of the Qgis
> Interface.[iface.actionSelect().trigger()]. Is there any way to do it?
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180615/e424a178/attachment.html>


More information about the QGIS-Developer mailing list