QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Signals | Public Member Functions | Protected Member Functions | Friends | List of all members
QgsTableWidgetBase Class Reference

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

#include <qgstablewidgetbase.h>

Inheritance diagram for QgsTableWidgetBase:
Inheritance graph
[legend]

Signals

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...
 

Friends

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.

Since
QGIS 3.0

Definition at line 33 of file qgstablewidgetbase.h.

Constructor & Destructor Documentation

◆ QgsTableWidgetBase()

QgsTableWidgetBase::QgsTableWidgetBase ( QWidget *  parent)
explicit

Constructor.

Definition at line 18 of file qgstablewidgetbase.cpp.

Member Function Documentation

◆ init()

void QgsTableWidgetBase::init ( QAbstractTableModel *  model)
protected

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 ( )
signal

Emitted each time a key or a value is changed.

Friends And Related Function Documentation

◆ TestQgsKeyValueWidget

friend class TestQgsKeyValueWidget
friend

Definition at line 75 of file qgstablewidgetbase.h.

◆ TestQgsListWidget

friend class TestQgsListWidget
friend

Definition at line 76 of file qgstablewidgetbase.h.


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