<div dir="ltr">I have found this post that explains how to do it<div><br><div><a href="http://gis.stackexchange.com/questions/66878/how-to-programmatically-associate-a-layer-with-a-custom-ui">http://gis.stackexchange.com/questions/66878/how-to-programmatically-associate-a-layer-with-a-custom-ui</a><br></div></div><div><br></div><div>Thanks.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-02 15:09 GMT+01:00 Alexandre Busquets <span dir="ltr"><<a href="mailto:abusquets@gmail.com" target="_blank">abusquets@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br></div><div><br></div><div>is possible change the editwidget with pyqgis?</div><div><br></div><div>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").</div><div><br></div><div>ThanksĀ </div></div>
</blockquote></div><br></div>