QGIS/python/gui/qgslistwidget.sip

33 lines
652 B
Plaintext
Raw Normal View History

2016-09-07 14:30:10 +02:00
/** \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 = nullptr );
/**
* 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;
};