QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
36 v = mComboBox->currentData();
40 v = QVariant(
field().type() );
55 return new QComboBox( parent );
60 mComboBox = qobject_cast<QComboBox *>( editor );
65 connect( mComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
75 void QgsValueMapWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
85 if ( mComboBox->findData( v ) == -1 )
87 if (
value.isNull( ) )
93 mComboBox->addItem( QString( v ).prepend(
'(' ).append(
')' ), v );
96 mComboBox->setCurrentIndex( mComboBox->findData( v ) );
static void populateComboBox(QComboBox *comboBox, const QVariantMap &configuration, bool skipNull)
Populates a comboBox with the appropriate entries based on a value map configuration.
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
static QString nullRepresentation()
This string is used to represent the value NULL throughout QGIS.
Represents a vector layer which manages a vector based data sets.