I am using QGIS 3.32 to set the field alias:
layer = iface.activeLayer()
layer.setFieldAlias(0, 'this is field')
I want the field aliases to show in the feature form only, not in the attribute table. How to acheive this using PyQGIS?
There are 3 ways to create feature form:
With 1st and 2nd methods, the field headers in the table and form are the same
With the 3rd method you can set field title manually or with code
Relevant for older versions of QGIS. Maybe there are some new options in 3.32.