def _map_rect_to_scene(self, rect):
 return self.sceneTransform().mapRect(rect)

def _map_rect_to_scene ( self , rect ) : return self . sceneTransform ( ) . mapRect ( rect )
only available in newer pyqt4 versions .