Hi Enzo,
I return to this old discussion because I noticed that the problem that I
described still remain the same when I use Qgis 2.0. On the contrary when I
use Qgis 2.1 all works fine.
I didn't full understand this problem previously because I use qgis 2.0
on my works PC and and 2.1 with
Hey Luca,
If all you want to do is load the attributes for a column from layer you
can just do this:
layer = QgsMapLayerRegistry.instance().mapLayersByName('yourname')[0]
for feature in layer.getFeatures():
combo.addItem(feature['columnname'])
That will loop all the features and load the
Thanks Nathan, your code is decisively more clearer !
nevertheless the problem remain the same: if i try to load the data
from a table without geometry, values for i.attributes()[1] remain
empty.
Luca
2013/12/20 Nathan Woodrow madman...@gmail.com:
Hey Luca,
If all you want to do is load
you are right, the code now works fine.
It was just my fault due to to the fact that I'm trying to take ones
first steps with pygis !
thanks for the support and sorry for the noise.
Btw I also resolve my second problem described in the first mail.
thanks
Luca
2013/12/21 Enzo Ciarmoli