
I get yourself a tremendous volume of email, and possess messages going back prior to the turn in theĬentury during my archive. it can be another good option that works using your email service. Pixmap = (QtImage2)Īs any productivity nerd knows, it’s keyboard shortcuts that squeeze Here’s a fully working program to illustrate the above in context (this is Python 2.6): import sys Just make a new QImage from the ImageQt object: myQtImage2 = QtGui.QImage(myQtImage1)Īnd this seems to turn the fake QImage into a real QImage, which can now be happily turned into a QPixmap.

On Windows it seems that it isn’t quite this easy. This class is a subclass of QtGui.QImage, which means that you can pass the resulting objects directly to PyQt4 API functions and methods. To quote:Ĭreates an ImageQt object from a PIL image object.

I think the problem is with the ImageQt object.

This works fine on Linux, but on Windows it crashes python.exe. Create your PIL image (you can use my kitten if you want).Ĭreate an ImageQt image from your PIL image (this is PIL’s version of a QImage).Ĭreate a QPixmap from your ImageQt image.Ĭreate a QLabel and set its QPixmap to be the one just created.Īnd the above in code: im = Image.open('kitten.jpg')
