Class: QgsTableView

A QTableView subclass with QGIS specific tweaks and improvements.

QgsTableView should be used instead of QTableView widgets. In most cases the use is identical, however QgsTableView adds extra functionality and UI tweaks for improved user experience in QGIS.

Added in version 3.26.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsTableView

Base classes

QTableView

QAbstractItemView

QAbstractScrollArea

QFrame

QWidget

QObject

QPaintDevice

Subclasses

QgsAttributeTableView

Provides a table view of features of a QgsVectorLayer.

class qgis.gui.QgsTableView[source]

Bases: QTableView

__init__(parent: QWidget | None = None)

Constructor for QgsTableView.

Parameters:

parent (Optional[QWidget] = None)