QGIS/python/gui/qgslistwidget.sip
2017-05-02 08:09:53 +02:00

33 lines
646 B
Plaintext

/** \ingroup gui
* Widget allowing to edit a QVariantList, using a table.
* @note added in QGIS 3.0
*/
class QgsListWidget : public QgsTableWidgetBase
{
%TypeHeaderCode
#include "qgslistwidget.h"
%End
public:
/**
* Constructor.
*/
explicit QgsListWidget( QVariant::Type subType, QWidget *parent = 0 );
/**
* Set the initial value of the widget.
*/
void setList( const QVariantList &list );
/**
* Get the edit value.
* @return the QVariantList
*/
QVariantList list() const;
/**
* Check the content is valid
* @return true if valid
*/
bool valid() const;
};