[QGIS-Developer] Disabling map context menu via PyQGIS
Johannes Kröger (WhereGroup)
johannes.kroeger at wheregroup.com
Fri Sep 3 00:14:14 PDT 2021
Hi list!
In QGIS 3.16 a right-click context menu was added to the map canvas:
https://www.qgis.org/en/site/forusers/visualchangelog316/index.html#add-context-menu-to-map-canvas
How can we disable that via PyQGIS?
https://qgis.org/pyqgis/master/gui/QgsMapCanvas.html lists a
"contextMenuEvent" method but does not provide any documentation at all.
The environment is a QGIS based standalone application.
Cheers, Hannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xBF7B268A77C202D5.asc
Type: application/pgp-keys
Size: 2471 bytes
Desc: OpenPGP public key
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210903/09a96b41/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210903/09a96b41/attachment.sig>
More information about the QGIS-Developer
mailing list