<div dir="ltr">Hello,<div><br></div><div>I'm trying to open an attribute dialog for a temporary feature using QgsAttributeDialog(). but with no luck. Can anyone point me to working example?</div><div>I'm trying something like this:<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">mc = iface.mapCanvas()<br>layer = mc.currentLayer()<br>dialog = QgsAttributeDialog(layer, temp_feature)<br>dialog.show()</blockquote></div><div><font color="#253555" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px;background-color:rgb(226,232,242)"><b><br></b></span></font></div>that gives me the following error on the 3rd line:<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">NameError: name 'QgsAttributeDialog' is not defined</blockquote><div><br></div><div>Thanks,</div><div><br></div><div>Alexandre</div></div>