From pykde Mon Mar 13 17:33:32 2006 From: com () heuel ! org Date: Mon, 13 Mar 2006 17:33:32 +0000 To: pykde Subject: [PyKDE] PyQt4: Problems with QImage.loadFromData(data) Message-Id: <406b94b0603130933x7157062rd83ee5ef69fe7e96 () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=pykde&m=114227150827100 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() image.loadFromData(data) [...] Why doesn't this work? _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde