How can I hide a column in QGIS 3 using PyQGIS:
In QGIS 2 it was quite simple:
editFormConf = layer.editFormConfig()
idx = layer.fields().indexFromName(columnName)
editFormConf.setWidgetType(idx, "Hidden")
I investigated, and now in QGIS 3 it has changed to something like
idx = layer.fields().indexFromName(columnName)
editor_widget_setup = QgsEditorWidgetSetup(...)
layer.setEditorWidgetSetup(idx, editor_widget_setup)
The problem is the use of the constructor QgsEditorWidgetSetup(...)
How to tell the constructor that this field is hidden?