QStringList labels;for(inti =0; i < ATTRIBUTE_NUMBER; i++ ) { labels << tr( attributeNames[i] ); } table->setColumnCount( labels.size() +1); table->setHorizontalHeaderLabels( labels ); table->setColumnHidden( ATTRIBUTE_NUMBER,true);for(inti =0; i < ATTRIBUTE_NUMBER; i++ ) {...
QWidget *QgsAttributeTableDelegate::createEditor( QWidget *parent,constQStyleOptionViewItem &option,constQModelIndex &index )const{ Q_UNUSED( option ); QgsVectorLayer *vl = layer( index.model() );if( !vl )returnnullptr;intfieldIdx = index.model()->data( index, QgsAttributeTableModel::Field...
self,"useAttrNames","Use attribute names", tooltip="Use attribute names for ids", callback=self.updateInputIds, ) self.idAttrCB = gui.comboBox( box, self,"idAttr", tooltip="Use attribute values from ...", callback=self.updateInputIds ) cb.disables = [(-1, self.idAttrCB)] cb.mak...