Currently, for a python plugin for QGIS 2.8.3, I get the list of fields for a layer using pendingFields as mentioned in this thread:
fields = self.layer.pendingFields()
I now have a few hidden fields (set via the fields tab in layer properties). How can I get a list of fields that are not hidden?
I see the possibility to get Edit Type, but am not sure where to go from here :
EditType {
LineEdit, UniqueValues, UniqueValuesEditable, ValueMap,
Classification, EditRange, SliderRange, CheckBox,
FileName, Enumeration, Immutable, Hidden,
TextEdit, Calendar, DialRange, ValueRelation,
UuidGenerator, Photo, WebView, Color,
EditorWidgetV2
}