'Return the screen geometry of the viewbox'

def viewGeometry(self):

    v = self.scene().views()[0]
    b = self.vb.mapRectToScene(self.vb.boundingRect())
    wr = v.mapFromScene(b).boundingRect()
    pos = v.mapToGlobal(v.pos())
    wr.adjust(pos.x(), pos.y(), pos.x(), pos.y())
    return wr
