Is there a possibility in QGIS setting a field (column) of the Attribute Table to not visible?

In the properties-dialogue of the layer, I couldn't find anything.


The option you want is under 'Layer properties', but depending on the version it's either under:

  1. Layer Properties
  2. Fields
  3. Select 'Line Edit' in field(column) which you want to hide
  4. Select 'Hidden'

Or in QGIS 3.8.2 it's:

  1. Layer Properties
  2. Attributes Form
  3. Select the column you want to hide under 'Fields'
  4. Select 'Hidden' under 'Widget Type'

enter image description here

  • 2
    Perhaps useful to someone at some point, the equivalent using PyQGIS [for the 0th field]: layer.setEditType(0, QgsVectorLayer.Hidden) – Snorfalorpagus Jan 20 '14 at 15:13
  • Your second approach to select the field as a "hidden" widget type in the attributes form does not work for me in QGIS 3.12 on a GeoPackage layer any more. I posted a new, easier approach as separate answer. – der Michi May 2 '20 at 12:48

I found this via HasT's answer, but in QGIS 2.6.1-Brighton it's:

  1. Layer Properties
  2. Fields
  3. 'Edit widget' column
  4. Text Edit
  5. 'Hidden' from the list box (found this last step misleading since there are no other options, you just hit OK)

If your attribute table was already open, you'll have to close it and reopen it to see the changes.

If anyone knows how to batch the hiding fields steps, please comment. Kind of annoying when there's a ton of fields to hide!


Hiding of attribute fields got easier recently. According to v3.10 of the documentation on hiding of columns you can change the visibility of a column directly from the attribute table:

By right-clicking in a column header, you can choose to hide it from the attribute table.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.