I have a vector layer in which attributes have value maps and I need to get the description of the value. I am able to get the values with feature.attributes()
, but I haven't found a way to get the description.
layer = canvas.currentLayer()
attributes = feature.attributes()
print attributes[5] # prints 0, but I need Unknown