QgsTableWidgetBase class
Base widget allowing to edit a collection, using a table.
Contents
This widget includes buttons to add and remove rows. Child classes must call init(QAbstractTableModel*) from their constructor.
Derived classes
- class QgsKeyValueWidget
- Widget allowing to edit a QVariantMap, using a table.
- class QgsListWidget
- Widget allowing to edit a QVariantList, using a table.
Constructors, destructors, conversion operators
- QgsTableWidgetBase(QWidget* parent) explicit
- Constructor.
Signals
- void valueChanged()
- Emitted each time a key or a value is changed.
Protected functions
- void init(QAbstractTableModel* model)
- Initialize the table with the given model.
Function documentation
void QgsTableWidgetBase:: init(QAbstractTableModel* model) protected
Initialize the table with the given model.
Must be called once in the child class' constructor.