QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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 ( QWidget *  parent)
explicit

Constructor.

Definition at line 18 of file qgstablewidgetbase.cpp.

Member Function Documentation

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.

void QgsTableWidgetBase::valueChanged ( )
signal

Emitted each time a key or a value is changed.

Friends And Related Function Documentation

friend class TestQgsKeyValueWidget
friend

Definition at line 75 of file qgstablewidgetbase.h.

friend class TestQgsListWidget
friend

Definition at line 76 of file qgstablewidgetbase.h.


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