I am catching the selectionChanged signal and passing the selected layer to the registered method. Once here, I want to know the features that were selected. I do this with a call to layer.selectedFeatures().
The return type from this call is a QgsFeatureList. As a test, I'm trying to print the values of the features in the QgsFeatureList that was selected, or just display them in a simple way. I find that neither QgsFeatureList nor QgsFeature has any functions returning a QString.
How can I print the values of the features that were selected?