<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 2, 2013 at 9:22 AM, <a href="mailto:francescoboccacci@libero.it">francescoboccacci@libero.it</a> <span dir="ltr"><<a href="mailto:francescoboccacci@libero.it" target="_blank">francescoboccacci@libero.it</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":ux">fields = { 0 : QgsFields("ID", QVariant.Int),<br>


                        1 : QgsFields("Area",  QVariant.Double),<br>
                        2 : QgsFields("Perim", QVariant.Double),<br>
                        3 : QgsFields(field, QVariant.String) }</div></blockquote></div><br>You should replace QgsFields with QgsField <a href="http://qgis.osgeo.org/api/classQgsField.html">http://qgis.osgeo.org/api/classQgsField.html</a></div>

<div class="gmail_extra"><br></div><div class="gmail_extra" style>- Nathan</div></div>