Hi Sarra,

You could use QgsAttributeDialog directly without using the iface. Does
that work for you?

All the best,
Matthias

On 03/11/2015 10:42 AM, Sahbani Sarra wrote:
>
> Hi,
>
>  
>
> I used QGIS 2.6.1
>
> I have a crush when I used “QgisAppInterface::openFeatureForm(...) “
> that called the function “ QgsFeatureAction::editFeature(...)”
>
> In this function:
>
>  
>
> dialog->setAttribute( Qt::WA_DeleteOnClose );
>
> int rv = dialog->exec();
>
> mFeature.setAttributes( dialog->feature()->attributes() );  // here
> there is a bug  because dialog is deleted  when I close the dialog
>
>  
>
>  
>
> is there another alternative of QgisAppInterface::openFeatureForm(...) ?
>
>  
>
>  
>
> Best regards,
>
> Sarra  Sahbani
>
>  
>
>  
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to