Hi, On Mon, Sep 29, 2014 at 6:19 PM, Alexandre Neto <[email protected]> wrote: > Hello Salvatore, > > You were right, I just needed to import the class first, this have opened > the form for me: > >> from qgis.gui import QgsAttributeDialog >> mc = iface.mapCanvas() >> layer = mc.currentLayer() >> temp_feature.setAttributes(attributes) >> dialog = QgsAttributeDialog(layer, temp_feature, True) >> dialog.show() > > > But now I can't make it editable.
is your layer editable? you need to call startEditing() method in order to get the form in edit mode. Best Regards, -SL -- Salvatore Larosa linkedIn: http://linkedin.com/in/larosasalvatore twitter: @lrssvt skype: s.larosa IRC: lrssvt on freenode _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
