def METHOD_NAME(self) -> QtGui.QPixmap:
    """Overrides QWidget.grab to only include the QR code itself,
    excluding horizontal/vertical stretch.
    """
    fsize = self._framesize
    if fsize is None:
        fsize = -1
    rect = QRect(0, 0, fsize, fsize)
    return QWidget.METHOD_NAME(self, rect)