How could I use layer.setEditType() method in QGIS for a custom form widget? Cusom form elements are well explained by Matthias Kuhn here.
I was able to change the existing default widget types. For instance,
layer.setEditType(idx, layer.ValueMap) but when I tried the same on a custom widget, it doesn't work. How could I do it?