[QGIS-Developer] Temporarily disable map canvas right click showing Copy Coordinates
Nyall Dawson
nyall.dawson at gmail.com
Wed Apr 12 18:09:17 PDT 2023
On Thu, 13 Apr 2023 at 10:47, Catania, Luke A ERDC-RDE-GRL-VA CIV via
QGIS-Developer <qgis-developer at lists.osgeo.org> wrote:
>
> I have an event filter on the map canvas that performs a commit during feature editing when right clicking on the canvas. While this performs the commit, it then pops up Copy Coordinates. I don’t want the user to see this. I want my mouse click event to be recognized and not have QGIS use it to popup the Copy Coordinates. Is there a way to call QgsMapTool.deactivate on that built in tool just for this instance and then reactivate it?
Are you using a custom QgsMapTool subclass? If so, implement the
"flags" method and don't return the ShowContextMenu flag.
Nyall
>
> _______________________________________________
> 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
More information about the QGIS-Developer
mailing list