[Qgis-developer] crash while setting attributes of a new feature
Marco Bernasocchi
marco at bernawebdesign.ch
Mon May 6 02:47:41 PDT 2013
hi denis I dont have the new api completely in mind, but maybe this [0]
can help you.
[0]
http://lists.osgeo.org/pipermail/qgis-developer/2013-February/024278.html
Marco Bernasocchi (mobile)
http://opengis.ch
On May 6, 2013 11:27 AM, "Denis Rouzaud" <denis.rouzaud at gmail.com> wrote:
> 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
> ______________________________**_________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/qgis-**developer<http://lists.osgeo.org/mailman/listinfo/qgis-developer>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130506/7f6b4f70/attachment.html>
More information about the Qgis-developer
mailing list