I have found this post that explains how to do it http://gis.stackexchange.com/questions/66878/how-to-programmatically-associate-a-layer-with-a-custom-ui
Thanks. 2015-03-02 15:09 GMT+01:00 Alexandre Busquets <[email protected]>: > Hi, > > is possible change the editwidget with pyqgis? > > I have made an extension that loads a postgis layer and I want to edit the > date fields with the date widget by default without any change in the > settings of layer ( "layer properties dialog"). > > Thanks >
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
