Skip to main content
1 of 2
Nathan W
  • 35k
  • 5
  • 99
  • 148

This will work:

features = layer.selectedFeatures()
for f in features:
    print f.attributeMap()
Nathan W
  • 35k
  • 5
  • 99
  • 148