def grab(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.grab(self, rect)
Overrides QWidget.grab to only include the QR code itself,
        excluding horizontal/vertical stretch.
        
electrum/gui/qt/qrcodewidget.py