Class: QgsOrganizeTableColumnsDialog

Dialog for organising (hiding and reordering) columns in the attributes table.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsOrganizeTableColumnsDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Methods

config

Gets the updated configuration

hideAll

hideAll unchecks all the fields to hide them all in the attribute table

showAll

showAll checks all the fields to show them all in the attribute table

toggleSelection

Toggle the check state of selected fields to hide or show them in the attribute table

class qgis.gui.QgsOrganizeTableColumnsDialog[source]

Bases: QDialog

__init__(vl: QgsVectorLayer | None, config: QgsAttributeTableConfig, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.Window)

Constructor

Parameters:
  • vl (Optional[QgsVectorLayer]) – The concerned vector layer

  • parent (Optional[QWidget] = None) – parent object

  • config (QgsAttributeTableConfig) – attribute table config to use.

  • flags (Union[Qt.WindowFlags, Qt.WindowType] = Qt.Window) – window flags

__init__(vl: QgsVectorLayer | None, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.Window)

Constructor

Parameters:
  • vl (Optional[QgsVectorLayer]) – The concerned vector layer

  • parent (Optional[QWidget] = None) – parent object

  • flags (Union[Qt.WindowFlags, Qt.WindowType] = Qt.Window) – window flags

config(self) QgsAttributeTableConfig[source]

Gets the updated configuration

Return type:

QgsAttributeTableConfig

hideAll(self)[source]

hideAll unchecks all the fields to hide them all in the attribute table

showAll(self)[source]

showAll checks all the fields to show them all in the attribute table

toggleSelection(self)[source]

Toggle the check state of selected fields to hide or show them in the attribute table

Added in version 3.36.