QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
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.

Definition at line 64 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 84 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 90 of file qgslistwidget.h.

Property Documentation

◆ list

QVariantList QgsListWidget::list
readwrite

Definition at line 64 of file qgslistwidget.h.


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