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

David Signer david at opengis.ch
Thu Jan 5 00:49:26 PST 2023


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 at 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 at 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230105/c689f4e2/attachment.htm>


More information about the QGIS-Developer mailing list