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

Nejia nejia at spaceyes.fr
Fri Nov 28 06:50:14 PST 2014


Any ideas please to troubleshoot this problem?

 

De : qgis-developer-bounces at lists.osgeo.org
[mailto:qgis-developer-bounces at lists.osgeo.org] De la part de Nejia
Envoyé : mardi 25 novembre 2014 16:51
À : qgis-developer at lists.osgeo.org
Objet : [Qgis-developer] pb with change attribute value in QGIS 2.6

 

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/20141128/cf90f31f/attachment-0001.html>


More information about the Qgis-developer mailing list