[Qgis-developer] Bug in openFeatureForm (QGIS 2.6)

Matthias Kuhn matthias at opengis.ch
Wed Mar 11 02:51:56 PDT 2015


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
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150311/90f68595/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150311/90f68595/attachment.pgp>


More information about the Qgis-developer mailing list