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

Andreas Neumann a.neumann at carto.net
Thu Jan 5 01:19:49 PST 2023


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 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. 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 no attribute 'accepted'
>> 
>> Anyone has a hint what kind of signal I could use to process data on 
>> acceptance or closing of an attribute form?
>> 
>> Thanks,
>> 
>> Andreas
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230105/6d0e234d/attachment.htm>


More information about the QGIS-Developer mailing list