QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsListWidget Class Reference

Widget allowing editing a QVariantList, using a table. More...

#include <qgslistwidget.h>

Inheritance diagram for QgsListWidget:

Public Slots

void setReadOnly (bool readOnly) override
Public Slots inherited from QgsTableWidgetBase
virtual void setReadOnly (bool readOnly)
 Sets whether the widget should be shown in a read-only state.

Public Member Functions

 QgsListWidget (QMetaType::Type subType, QWidget *parent=nullptr)
 Constructor.
QVariantList list () const
 Gets the edit value.
void setList (const QVariantList &list)
 Set the initial value of the widget.
bool valid () const
 Check the content is valid.
Public Member Functions inherited from QgsTableWidgetBase
 QgsTableWidgetBase (QWidget *parent)
 Constructor.
bool isReadOnly () const
 Returns true if the widget is shown in a read-only state.

Properties

QVariantList list

Additional Inherited Members

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

Detailed Description

Widget allowing editing a QVariantList, using a table.

Definition at line 65 of file qgslistwidget.h.

Constructor & Destructor Documentation

◆ QgsListWidget()

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

Constructor.

Definition at line 22 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 29 of file qgslistwidget.cpp.

◆ setReadOnly

void QgsListWidget::setReadOnly ( bool readOnly)
overrideslot

Definition at line 35 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 68 of file qgslistwidget.h.


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