'Move/scale the selection box so it fits the item\'s bounding rect. (assumes item is not rotated)'

def selectBoxToItem(self):

    self.itemRect = self._graphicsItem.boundingRect()
    rect = self._graphicsItem.mapRectToParent(self.itemRect)
    self.selectBox.blockSignals(True)
    self.selectBox.setPos([rect.x(), rect.y()])
    self.selectBox.setSize(rect.size())
    self.selectBox.setAngle(0)
    self.selectBoxBase = self.selectBox.getState().copy()
    self.selectBox.blockSignals(False)
