Re: [QGIS-Developer] Pyqgis Close init form

2022-12-20 Thread Richard Duivenvoorde via QGIS-Developer
Ok, did some testing... Mmm something fishy is going on.. First time I used: dialog.close() I got an python exception telling me that QgsAttributeForm didn't have a close() .. So the 'dailog' is actually not a QDialog but the QgsAttributeForm (which is a QWidget) ON a QDialog.. But... I could

Re: [QGIS-Developer] Offering QGIS installers through Windows store

2022-12-20 Thread Matthias Kuhn via QGIS-Developer
Hi all, I have had quite good experience with vcpkg for packaging qfield [1] (and remember waiting for months for qt updates on conda), we are also considering this for building mac packages. Furthermore, there are many dependencies already prepared for UWP as first class citizen. If a change of

Re: [QGIS-Developer] Pyqgis Close init form

2022-12-20 Thread PIERRE Sylvain via QGIS-Developer
When adding a new feature (polygon) I would like to close form when centroid does not intersect a polygon from an other layer Here is my full python init form dialog function: # -*- coding: utf8 -*- from qgis.core import QgsVectorLayer, QgsFeatureRequest, QgsRectangle, QgsGeometry, QgsProject, Q

Re: [QGIS-Developer] Pyqgis Close init form

2022-12-20 Thread Richard Duivenvoorde via QGIS-Developer
Can you provide a little more code? And more info where exactly it is called (in the startup.py or in some form init code? Is 'dialog' available in the code part in which you try to close it? Regards, Richard Duivenvoorde On 12/20/22 09:24, PIERRE Sylvain via QGIS-Developer wrote: Hi all,

[QGIS-Developer] Pyqgis Close init form

2022-12-20 Thread PIERRE Sylvain via QGIS-Developer
Hi all, I can not achieve closing a form in init pyqgis fonction. I try : dialog.close() But form stay without any widgets I try dialog.parent().close() Does nothing dialog.parent().reject() Qgis crash Any hints ? Thanks [cid:image001.jpg@01D91454