| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   29   return mComboBox->currentData();
 
   39   return new QComboBox( parent );
 
   44   mComboBox = qobject_cast<QComboBox *>( editor );
 
   52       for ( 
int i = 0; i < categories.size(); i++ )
 
   54         QString label = categories[i].label();
 
   55         const QString 
value = categories[i].value().toString();
 
   56         if ( label.isEmpty() )
 
   59         mComboBox->addItem( label, 
value );
 
   63     connect( mComboBox, 
static_cast<void ( QComboBox::* )( 
int )
>( &QComboBox::currentIndexChanged ),
 
   73 void QgsClassificationWidgetWrapper::updateValues( 
const QVariant &value, 
const QVariantList & )
 
   75   mComboBox->setCurrentIndex( mComboBox->findData( 
value ) );
 
  
const QgsCategoryList & categories() const
Returns a list of all categories recognized by the renderer.
 
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
 
QList< QgsRendererCategory > QgsCategoryList
 
Represents a vector layer which manages a vector based data sets.
 
QgsFeatureRenderer * renderer()
Returns the feature renderer used for rendering the features in the layer in 2D map views.