<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Sarra,<br>
    <br>
    You could use QgsAttributeDialog directly without using the iface.
    Does that work for you?<br>
    <br>
    All the best,<br>
    Matthias<br>
    <br>
    <div class="moz-cite-prefix">On 03/11/2015 10:42 AM, Sahbani Sarra
      wrote:<br>
    </div>
    <blockquote
      cite="mid:006501d05bdf$b4d46f40$1e7d4dc0$@sahbani@spaceyes3d.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US">I used QGIS
            2.6.1<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US">I have a crush
            when I used “QgisAppInterface::openFeatureForm(...) “ that
            called the function “ QgsFeatureAction::editFeature(...)”<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US">In this
            function: <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Times New
            Roman","serif";color:#365F91">dialog->setAttribute(
            Qt::WA_DeleteOnClose );<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:"Times New
            Roman","serif";color:#365F91">int rv =
            dialog->exec();<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif";color:#365F91" lang="EN-US">mFeature.setAttributes(
            dialog->feature()->attributes() ); </span><span
            style="font-family:"Times New
            Roman","serif"" lang="EN-US"> </span><span
            style="font-family:"Times New
            Roman","serif"" lang="EN-US">// here there is
            a bug  because dialog is deleted  when I close the dialog<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US">is there another
            alternative of QgisAppInterface::openFeatureForm(...) ?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US">Best regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-family:"Times New
            Roman","serif"" lang="EN-US">Sarra  Sahbani <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
    </blockquote>
    <br>
  </body>
</html>