QgsValueMapConfigDlg class

Base classes

class QgsEditorConfigWidget
This class should be subclassed for every configurable editor widget type.

Public static functions

static void populateComboBox(QComboBox* comboBox, const QVariantMap& configuration, bool skipNull)
Populates a comboBox with the appropriate entries based on a value map configuration.

Public functions

auto config() -> QVariantMap override
Create a configuration from the current GUI state.
void setConfig(const QVariantMap& config) override
Update the configuration widget to represent the given configuration.

Function documentation

static void QgsValueMapConfigDlg::populateComboBox(QComboBox* comboBox, const QVariantMap& configuration, bool skipNull)

Populates a comboBox with the appropriate entries based on a value map configuration.

If skipNull is true, then NULL entries will not be added.

QVariantMap QgsValueMapConfigDlg::config() override

Create a configuration from the current GUI state.

Returns A widget configuration

void QgsValueMapConfigDlg::setConfig(const QVariantMap& config) override

Update the configuration widget to represent the given configuration.

Parameters
config The configuration which should be represented by this widget