[Qgis-developer] pb with change attribute value in QGIS 2.6

Nejia nejia at spaceyes.fr
Tue Nov 25 07:50:58 PST 2014


Hi,

 

I have a tool that allow to edit attribute of features (only one attribute):

1-      I select the feature by click on it: vectorLayer->getFeatures(
QgsFeatureRequest().setFilterRect( tSelectRect ).setFlags(
QgsFeatureRequest::ExactIntersect ))

2-      Modify the attribute

3-      Validate attribute change : vectorLayer->changeAttributeValue(
fId(), iField, newValue,oldValue );

 

The attribute change in attribute table but not on the label (layer is
labeled with the attribute) and in the identify result dialog.

 

I compile my plugin with libraries of Qgis 2.6 shipped with OSGeo4W, if I
use libraries of QGIS that I build from sources it work without any problem.

I compiled the same plugin with libraries of QGIS 2.4 shipped with OSGeo4W
and it worked fine.

 

Regards

Nejia

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20141125/8bf314cb/attachment.html>


More information about the Qgis-developer mailing list