QgsListWidget class

Widget allowing to edit a QVariantList, using a table.

Base classes

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

Constructors, destructors, conversion operators

QgsListWidget(QVariant::Type subType, QWidget* parent = nullptr) explicit
Constructor.

Public functions

auto list() const -> QVariantList
Gets the edit value.
void setList(const QVariantList& list)
Set the initial value of the widget.
auto valid() const -> bool
Check the content is valid.

Function documentation

QVariantList QgsListWidget::list() const

Gets the edit value.

Returns the QVariantList

bool QgsListWidget::valid() const

Check the content is valid.

Returns true if valid