[Qgis-developer] QgsAttributeDialog() working example

Alexandre Neto senhor.neto at gmail.com
Mon Sep 29 07:56:33 PDT 2014


Hello,

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?
I'm trying something like this:


> mc = iface.mapCanvas()
> layer = mc.currentLayer()
> dialog = QgsAttributeDialog(layer, temp_feature)
> dialog.show()


that gives me the following error on the 3rd line:

NameError: name 'QgsAttributeDialog' is not defined


Thanks,

Alexandre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140929/cb1cd6a9/attachment.html>


More information about the Qgis-developer mailing list