In a PyQT4 program, I have a QLabel displaying an image with the following code :
in the init code :
Image=QImage(som_path_from_a_fileDialog)
in the resize method :
pixmap = QPixmap.fromImage(Image)
pixmap = pixmap.scaled(self.display.size())
self.display.setPixmap(pixmap)
When I execute my script with python, it works fine, and I can display .bmp and JPEG files. If I compile it using py2exe however, I will only be able to display .bmp files. JPEG File display will fail with :
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::end: Painter not active, aborted
QPixmap::scaled: Pixmap is a null pixmap
EDIT : It is a duplicate of this question