I am creating a QGIS plugin. Loaded postGIS layers onto QGIS. now, need to iterate the feature attributes with next and previous buttons.Once the layer is loaded, first attribute and feature is selected.
feature = selectedLayer.getFeatures().next()
Using this code, first attribute and feature is selected. I am struck in selecting the next attribute of feature using next button.