[PyKDE] PyQt4: Problems with QImage.loadFromData(data)

com at heuel.org com at heuel.org
Mon Mar 13 17:33:32 GMT 2006

Dear all

I would like to use the function loadFromData of QImage, specifically
with PIL. But the code

        imagePIL = Image.open(fileName)       # e.g. a PNG file
        data = self.imagePIL.tostring()            # this should
contain the data

        image = QtGui.QImage()


Why doesn't this work?

More information about the PyQt mailing list