QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Signals | Public Member Functions | Protected Member Functions | Friends | List of all members
QgsTableWidgetBase Class Reference

#include <qgstablewidgetbase.h>

Inheritance diagram for QgsTableWidgetBase:
Inheritance graph


void valueChanged ()
 Emitted each time a key or a value is changed. More...

Public Member Functions

 QgsTableWidgetBase (QWidget *parent)
 Constructor. More...

Protected Member Functions

void init (QAbstractTableModel *model)
 Initialize the table with the given model. More...


class TestQgsKeyValueWidget
class TestQgsListWidget

Detailed Description

Base widget allowing to edit a collection, using a table.

This widget includes buttons to add and remove rows. Child classes must call init(QAbstractTableModel*) from their constructor.

QGIS 3.0

Definition at line 33 of file qgstablewidgetbase.h.

Constructor & Destructor Documentation

◆ QgsTableWidgetBase()

QgsTableWidgetBase::QgsTableWidgetBase ( QWidget *  parent)


Definition at line 18 of file qgstablewidgetbase.cpp.

Member Function Documentation

◆ init()

void QgsTableWidgetBase::init ( QAbstractTableModel *  model)

Initialize the table with the given model.

Must be called once in the child class' constructor.

Definition at line 26 of file qgstablewidgetbase.cpp.

◆ valueChanged

void QgsTableWidgetBase::valueChanged ( )

Emitted each time a key or a value is changed.

Friends And Related Function Documentation

◆ TestQgsKeyValueWidget

friend class TestQgsKeyValueWidget

Definition at line 88 of file qgstablewidgetbase.h.

◆ TestQgsListWidget

friend class TestQgsListWidget

Definition at line 89 of file qgstablewidgetbase.h.

The documentation for this class was generated from the following files: