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 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@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > -- <https://www.opengis.ch/2022/11/03/best-of-swiss-enterprise-app-award-for-qfield/> Best of Swiss Enterprise App-Award for QField <https://www.opengis.ch/2022/11/03/best-of-swiss-enterprise-app-award-for-qfield/> - Hold the power of QGIS in your hand - get it now <https://qfield.org/get>
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer