Thanks a lot. I figured it out!
https://gis.stackexchange.com/questions/286376/is-there-any-polygon-select-map-tool-for-qgsmapcanvas
here's my working, please check it out if you want too.

On Fri, Jun 15, 2018 at 5:06 PM Denis Rouzaud <[email protected]>
wrote:

> 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 <[email protected]>
> 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
>> [email protected]
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to