QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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 mComboBox->view()->setVerticalScrollBarPolicy( Qt::ScrollBarAsNeeded );
66 connect( mComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
76 void QgsValueMapWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
86 if ( mComboBox->findData( v ) == -1 )
88 if (
value.isNull( ) )
94 mComboBox->addItem( QString( v ).prepend(
'(' ).append(
')' ), v );
97 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.