Assume I have selected several features of a layer in QGIS and I would like to get the bounding information of the whole selected area through python console like the bounding of yellow regions the figure shows.
What is the easiest method to do it?
p.s. I have tried to use
layer.selectedFeatures() but it just extract the list of selected features but cannot directly get the bounding info.