With PyQGIS you can use following code:
layer = iface.activeLayer()
feats = [ feat for feat in layer.getFeatures() ]
for i, feat in enumerate(feats):
bbox = feat.geometry().boundingBox()
xmin,ymin,xmax,ymax = bbox.toRectF().getCoords()
print xmin, ymin, xmax, ymax
Editing Note:
layer = iface.activeLayer()
feats = [ feat for feat in layer.getFeatures() ]
for i, feat in enumerate(feats):
bbox = feat.geometry().boundingBox()
xmin,ymin,xmax,ymax = bbox.toRectF().getCoords()
print xmin, ymin, xmax, ymax
topLeft = (xmin, ymax)
bottomRight = (xmax, ymin)
print topLeft, bottomRight