mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
33 lines
652 B
Plaintext
33 lines
652 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 = 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;
|
|
};
|