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

Andreas Neumann a.neumann at carto.net
Thu Jan 5 00:49:08 PST 2023


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/fe9c1795/attachment.htm>


More information about the QGIS-Developer mailing list