[Qgis-developer] QgsFields problem

Nathan Woodrow madmanwoo at gmail.com
Fri Feb 1 16:03:46 PST 2013


On Sat, Feb 2, 2013 at 9:22 AM, francescoboccacci at libero.it <
francescoboccacci at libero.it> wrote:

> fields = { 0 : QgsFields("ID", QVariant.Int),
>                         1 : QgsFields("Area",  QVariant.Double),
>                         2 : QgsFields("Perim", QVariant.Double),
>                         3 : QgsFields(field, QVariant.String) }
>

You should replace QgsFields with QgsField
http://qgis.osgeo.org/api/classQgsField.html

- Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130202/325a8bac/attachment.html>


More information about the Qgis-developer mailing list