ciao!

ho una funzione che mi restituisce questo oggetto:
codice:
<qrcode.image.pil.PilImage object at 0x7fdde4807430>
vorrei metterlo come background di una qlabel, ed ho provato così:
codice:
def setLblImage(self, img):
    imageQt = ImageQt(img)
    qImage = QtGui.QImage(imageQt)
    pixmap = QtGui.QPixmap.fromImage(qImage)
    self.window.lblImage.setPixmap(pixmap)
ma mi da questo errore:
codice:
Traceback (most recent call last):
  File "/home/fermat/PycharmProjects/MPQrcode/main.py", line 31, in <lambda>
    self.window.btnCrea.clicked.connect(lambda: self.saveFileDialog(self.window.txtTesto.text().strip()))
  File "/home/fermat/PycharmProjects/MPQrcode/main.py", line 43, in saveFileDialog
    self.setLblImage(img)
  File "/home/fermat/PycharmProjects/MPQrcode/main.py", line 38, in setLblImage
    self.window.lblImage.setPixmap(pixmap)
TypeError: 'PySide6.QtWidgets.QLabel.setPixmap' called with wrong argument types:
  PySide6.QtWidgets.QLabel.setPixmap(QPixmap)
Supported signatures:
  PySide6.QtWidgets.QLabel.setPixmap(Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str])
FIXME Subscripted generics cannot be used with class and instance checks
sinceramente non ho capito quale sia il problema.
qualche idea??