Re: [QGIS-Developer] QgsAttributeDialog and PyQt - Signal for accept or close of dialog

2023-01-05 Thread Andreas Neumann via QGIS-Developer
Hi, I got the "featureSaved" signal working (firing), but the "closed" signal is not triggered - no idea why ... But I can work with the "featureSaved" signal - I am fine with that one. Andreas On 2023-01-05 09:49, Andreas Neumann wrote: Hi again, Oh - I see, i am dealing with the

Re: [QGIS-Developer] QgsAttributeDialog and PyQt - Signal for accept or close of dialog

2023-01-05 Thread David Signer via QGIS-Developer
Hi Andreas QgsAttributeForm is a QWidget (no accepted there). Shouldn't myDialog be a QgsAttributeDialog instead? Cheers Dave On Thu, Jan 5, 2023 at 9:40 AM Andreas Neumann via QGIS-Developer < qgis-developer@lists.osgeo.org> wrote: > Hi, > > This concerns PyQt code. I am trying to process

Re: [QGIS-Developer] QgsAttributeDialog and PyQt - Signal for accept or close of dialog

2023-01-05 Thread Andreas Neumann via QGIS-Developer
Hi again, Oh - I see, i am dealing with the QgsAttributeForm and not the QgsAttributeDialog object. The QgsAttributeForm has a "closed" signal. I can attach to it, but it doesn't fire ;-( Andreas On 2023-01-05 09:40, Andreas Neumann via QGIS-Developer wrote: Hi, This concerns PyQt code.

[QGIS-Developer] QgsAttributeDialog and PyQt - Signal for accept or close of dialog

2023-01-05 Thread Andreas Neumann via QGIS-Developer
Hi, This concerns PyQt code. I am trying to process attribute data on acceptance of a QgsAttributeDialog and can't find the correct signal name that I could attach my function to. I tried myDialog.accepted.connect(myFunction) but it tells me AttributeError: 'QgsAttributeForm' object has