Re: [QGIS-Developer] 2023 grant applications are now closed

2023-05-04 Thread Loïc Bartoletti via QGIS-Developer
Hi, On 04/05/2023 22:08, Nyall Dawson via QGIS-Developer wrote: Thanks Anita! On Fri, 5 May 2023, 4:44 am Anita Graser via QGIS-Developer, wrote: 8. Unify the geometric and topological verification and correction features in QGIS -

[QGIS-Developer] Override mouse events in Shape Digitizing Toolbar

2023-05-04 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
I have made a few posts here, so this might sound a bit repetitive, but specifies the specific QGIS tool I am using. I want to override the right mouse click when using the Shape Digitizing Toolbar to end an edit session. I don't want it to end the session unless the shape is if of a specific

Re: [QGIS-Developer] RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted

2023-05-04 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
So I discarded my changes and started over and I also changed the event to end the drawing from the left mouse button to the middle and managed to avoid the deleted object error. I tested a multitude of shape drawings and clicking the middle button to end my edit session when the size is not

Re: [QGIS-Developer] [EXTERNAL] Re: Outdated WebKit engine version in QGIS

2023-05-04 Thread Nguyen, Huy Minh via QGIS-Developer
Thanks for the infos. After some trial and error, I am able to use QtWebEngine as Qt QML component in python in QGIS 3.26.3 and QGIS 3.30.1 out-of-the-box. Example from Qt docs works as expected https://doc.qt.io/qt-5/qml-qtwebengine-webengineview.html This approach doesn't work on macOS

Re: [QGIS-Developer] 2023 grant applications are now closed

2023-05-04 Thread Nyall Dawson via QGIS-Developer
Thanks Anita! On Fri, 5 May 2023, 4:44 am Anita Graser via QGIS-Developer, < qgis-developer@lists.osgeo.org> wrote: > > 8. Unify the geometric and topological verification and correction > features in QGIS - > https://github.com/qgis/QGIS-Enhancement-Proposals/issues/262 > This link points to a

[QGIS-Developer] 2023 grant applications are now closed

2023-05-04 Thread Anita Graser via QGIS-Developer
Dear QGIS Community,   This is to let you know that the form for grant applications is now closed and that we have received 9 complete applications totalling € 103,600.   As a quick teaser, here are the proposals:   1. QGIS Bug Tracker cleanup -

Re: [QGIS-Developer] RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted

2023-05-04 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
Thanks. I’m just trying to figure out how this happens because I don’t remove the layer from the map. It’s actually initially added as an empty layer and then the geometry is added and then the changes are committed, so I never remove it. I’ll review my code again to see if I do anything

Re: [QGIS-Developer] Multiple python scripts in python console?

2023-05-04 Thread Etienne Trimaille via QGIS-Developer
> For example, a newly defined function on the class was > unknown in script_1. Might be a bug, but I'm not even sure. Well, for me it works without any issue. But you need to re-execute the script_2.py in the Python console, it will refresh the class definition in the Python console context then

Re: [QGIS-Developer] Multiple python scripts in python console?

2023-05-04 Thread Raymond Nijssen via QGIS-Developer
Hi Etienne, Already tried what you are describing. Indeed it's inconvenient, and sometimes the changes in the class code did not end up in the class definition. For example, a newly defined function on the class was unknown in script_1. Might be a bug, but I'm not even sure. So the best way

Re: [QGIS-Developer] Multiple python scripts in python console?

2023-05-04 Thread Etienne Trimaille via QGIS-Developer
If you are talking about the simple Python console panel, and loading Python files from there, then you can skip the " from .script_2 import TestClass". If you notice, when you launch the script_2.py, you have a generated line similar to : exec(Path('/tmp/tmp5g244g4w.py').read_text()) So it's

Re: [QGIS-Developer] RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted

2023-05-04 Thread Benjamin Jakimow via QGIS-Developer
Hi Luke, to my experience the "RuntimeError: wrapped C/C++ object of type QgsVectorLayer has been deleted" is raised when the C++ QgsVectorLayer has been deleted by a parent class. This is often a QgsMapLayerStore, for example the QgsProject.instance().mapLayerStore(), from which a layer gets

[QGIS-Developer] Multiple python scripts in python console?

2023-05-04 Thread Raymond Nijssen via QGIS-Developer
Hi developers, While writing a python script in the QGIS python console editor I needed to write a new class and for convenience I put that in its own python file. Both files are in the same directory, but I cannot import my class in the other script. Here's an example: # script_1.py