QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
QgsKeyValueWidget Class Reference

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

#include <qgskeyvaluewidget.h>

Inheritance diagram for QgsKeyValueWidget:

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

 QgsKeyValueWidget (QWidget *parent=nullptr)
 Constructor.
QVariantMap map () const
 Gets the edit value.
void setMap (const QVariantMap &map)
 Set the initial value of the widget.
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

QVariantMap map

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 QVariantMap, using a table.

Definition at line 64 of file qgskeyvaluewidget.h.

Constructor & Destructor Documentation

◆ QgsKeyValueWidget()

QgsKeyValueWidget::QgsKeyValueWidget ( QWidget * parent = nullptr)
explicit

Constructor.

Definition at line 20 of file qgskeyvaluewidget.cpp.

Member Function Documentation

◆ map()

QVariantMap QgsKeyValueWidget::map ( ) const
inline

Gets the edit value.

Returns
the QVariantMap

Definition at line 84 of file qgskeyvaluewidget.h.

◆ setMap()

void QgsKeyValueWidget::setMap ( const QVariantMap & map)

Set the initial value of the widget.

Definition at line 27 of file qgskeyvaluewidget.cpp.

◆ setReadOnly

void QgsKeyValueWidget::setReadOnly ( bool readOnly)
overrideslot

Definition at line 33 of file qgskeyvaluewidget.cpp.

Property Documentation

◆ map

QVariantMap QgsKeyValueWidget::map
readwrite

Definition at line 67 of file qgskeyvaluewidget.h.


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