Re: [QGIS-Developer] How to handle upstream Qt fixes

2021-09-03 Thread Jürgen E . Fischer
Hi Nyall, On Fri, 03. Sep 2021 at 08:46:21 +1000, Nyall Dawson wrote: > - KDE and other open source projects forked Qt 5.15 at > https://invent.kde.org/qt/qt/qtbase/-/commits/dev/, and are actively > backporting fixes from Qt6 to that branch. Fedora recently started > using the KDE branch for Qt

Re: [QGIS-Developer] Trouble compiling QGIS

2021-09-03 Thread Andreas Neumann
Hi Even, With "valgrind output/bin/crssync" I can see that two different "libproj"-versions are involved with crssync: /usr/lib/x86_64-linux-gnu/libproj.so.15.3.1 and /usr/local/lib/libproj.so.22.1.0 I guess I will have to find out which library is still referencing the old libproj

Re: [QGIS-Developer] Trouble compiling QGIS

2021-09-03 Thread Even Rouault
Andreas Several things to check: - Is your GDAL build a clean one ? That is is it from a fresh build directory, or are you rebuilding in a directory where a previous build was done. If the later, make sure to "make clean" before rebuilding - Is your GDAL build using your custom GEOS one ?

[QGIS-Developer] Trouble compiling QGIS

2021-09-03 Thread Andreas Neumann
Hi, I have troubles compiling QGIS on my Linux Ubuntu 20.04 machine. I use a self-compiled GEOS and GDAL. The build always hangs at "crssync" - here is the ninja build output I get. Do you have any idea what might be wrong or what I could do in order to fix this problem? Thank you for your

Re: [QGIS-Developer] Disabling map context menu via PyQGIS

2021-09-03 Thread WhereGroup
Thank you guys so much for your great suggestions! Since I am not already overriding QgsMapCanvas or using a custom MapTool at all times, I went for Benoit's solution (which Benjamin hinted at) and it works great. A hundred internet points to you! :) Cheers, Hannes Am 03.09.21 um 09:58

Re: [QGIS-Developer] How to handle upstream Qt fixes

2021-09-03 Thread Andreas Neumann
Hi all, Thank you Nyall for raising these questions - and Greg for joining the discussion. Obviously, the questions are not easy and straight-foward to answer. They also depend on what the other OS projects will do about this situation in general. Perhaps we can also ask the KDAB folks

Re: [QGIS-Developer] Disabling map context menu via PyQGIS

2021-09-03 Thread Benoit Ducarouge
Hi, if you just want to hide the menu, you can clear it on the contextMenuAboutToShow event : def clearMenu(menu, event):     menu.clear() iface.mapCanvas().contextMenuAboutToShow.connect(clearMenu) Benoit. Le 03/09/2021 à 09:31, Benjamin Jakimow a écrit : Hi Hannes, in C++ you could

Re: [QGIS-Developer] Disabling map context menu via PyQGIS

2021-09-03 Thread Benjamin Jakimow
Hi Hannes, in C++ you could override void QgsMapCanvas::showContextMenu( QgsMapMouseEvent *event ) which creates and shows the context menu. in Python showContextMenu is not available. There you could re-implement void QgsMapCanvas::mousePressEvent( QMouseEvent *e ) to avoid any calls of

Re: [QGIS-Developer] Disabling map context menu via PyQGIS

2021-09-03 Thread Nyall Dawson
On Fri, 3 Sept 2021 at 17:14, Johannes Kröger (WhereGroup) wrote: > > 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? > >

[QGIS-Developer] Disabling map context menu via PyQGIS

2021-09-03 Thread WhereGroup
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