QGIS API Documentation 3.39.0-Master (47f7b3a4989)
Loading...
Searching...
No Matches
Public Slots | 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 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 to edit 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 19 of file qgslistwidget.cpp.

Member Function Documentation

◆ list()

QVariantList QgsListWidget::list ( ) const
inline

Gets the edit value.

Returns
the QVariantList

Definition at line 85 of file qgslistwidget.h.

◆ setList()

void QgsListWidget::setList ( const QVariantList &  list)

Set the initial value of the widget.

Definition at line 27 of file qgslistwidget.cpp.

◆ setReadOnly

void QgsListWidget::setReadOnly ( bool  readOnly)
overrideslot

Definition at line 33 of file qgslistwidget.cpp.

◆ valid()

bool QgsListWidget::valid ( ) const
inline

Check the content is valid.

Returns
true if valid

Definition at line 91 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: