I have a stand-alone PyQGis program and I need to periodically access the selected features of some vector layers. But I noticed that there seems to be no python wrapper for the '
selectedFeatureIds' or the '
getSelectedFeatures' methods of
QgsVectorLayer class. There is a python wrapper for the '
selectedFeatures' function, but the documentation says that it actually makes copies of the selected features, which I don't want, all I want is to be able to iterate through selected features without duplicating anything. The QGis core is from QGis 2.12 (lyon) and PyQt4.
So this means there is no good way of getting access to the selected features in a layer in pyqgis apps.