QGIS API Documentation  3.2.0-Bonn (bc43194)
Public Member Functions | Properties | List of all members
QgsListWidget Class Reference

Widget allowing to edit a QVariantList, using a table. More...

#include <qgslistwidget.h>

Inheritance diagram for QgsListWidget:
Inheritance graph
[legend]

Public Member Functions

 QgsListWidget (QVariant::Type subType, QWidget *parent=nullptr)
 Constructor. More...
 
QVariantList list () const
 Gets the edit value. More...
 
void setList (const QVariantList &list)
 Set the initial value of the widget. More...
 
bool valid () const
 Check the content is valid. More...
 
- Public Member Functions inherited from QgsTableWidgetBase
 QgsTableWidgetBase (QWidget *parent)
 Constructor. More...
 

Properties

QVariantList list
 

Additional Inherited Members

- Signals inherited from QgsTableWidgetBase
void valueChanged ()
 Emitted each time a key or a value is changed. More...
 
- Protected Member Functions inherited from QgsTableWidgetBase
void init (QAbstractTableModel *model)
 Initialize the table with the given model. More...
 

Detailed Description

Widget allowing to edit a QVariantList, using a table.

Since
QGIS 3.0

Definition at line 66 of file qgslistwidget.h.

Constructor & Destructor Documentation

◆ QgsListWidget()

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

Constructor.

Definition at line 18 of file qgslistwidget.cpp.

Member Function Documentation

◆ list()

QVariantList QgsListWidget::list ( ) const
inline

Gets the edit value.

Returns
the QVariantList

Definition at line 86 of file qgslistwidget.h.

◆ setList()

void QgsListWidget::setList ( const QVariantList &  list)

Set the initial value of the widget.

Definition at line 26 of file qgslistwidget.cpp.

◆ valid()

bool QgsListWidget::valid ( ) const
inline

Check the content is valid.

Returns
true if valid

Definition at line 92 of file qgslistwidget.h.

Property Documentation

◆ list

QVariantList QgsListWidget::list
readwrite

Definition at line 69 of file qgslistwidget.h.


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