I'm converting old Python 2.7 code to Python 3 and get following error on the last line:
ar = imgArray*255
ar = numpy.clip(ar, 0, 255, out=ar)
img = Image.fromarray(ar.astype("uint8"))
qim = ImageQt.ImageQt(img)
pm = QtGui.QPixmap.fromImage(qim)
TypeError: 'PySide6.QtGui.QPixmap.fromImage' called with wrong argument types:
PySide6.QtGui.QPixmap.fromImage(ImageQt)
So, the question is: how to get QPixmap from ImageQt object in PySide6?