23 , mComboBox( nullptr )
56 mComboBox = qobject_cast<
QComboBox*>( editor );
61 QgsEditorWidgetConfig::ConstIterator it = cfg.constBegin();
63 while ( it != cfg.constEnd() )
65 mComboBox->
addItem( it.key(), it.value() );
void addItem(const QString &text, const QVariant &userData)
QVariantMap QgsEditorWidgetConfig
Holds a set of configuration parameters for a editor widget wrapper.
QVariant itemData(int index, int role) const
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
int findData(const QVariant &data, int role, QFlags< Qt::MatchFlag > flags) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Represents a vector layer which manages a vector based data sets.
QVariant::Type type() const
Gets variant type of the field as it will be retrieved from data source.
#define VALUEMAP_NULL_TEXT