[Qgis-developer] crash while setting attributes of a new feature

Denis Rouzaud denis.rouzaud at gmail.com
Mon May 6 02:27:23 PDT 2013


Hi all,

I got a crash when I did this:

fields = layer.dataProvider().fields()
f = QgsFeature()
f.setFields(fields)
for field in fields:
     f[field.name()] = QVariant("1")

Using QVariant or not.

What did I (again) did wrong ????

Greetings,

Denis


More information about the Qgis-developer mailing list