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
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
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
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,
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