Details
-
Bug
-
Resolution: Done
-
P0: Blocker
-
4.6.0
-
None
-
bc992c8e40fcfdcfe0015dd88dda77c318c10a55
Description
The QPixmap constructor that accepts a QImage argument (Qt3Support) crashes because of a NULL pointer. Seems like the code did not get adapted when QPixmap::init() got rewritten for Qt 4.6. Previously it always had a value, now it is set to NULL because of the arguments passed.
Simple to reproduce (with QT += qt3support set):
#include <qapplication.h>
#include <qpixmap.h>
#include <qimage.h>
int main(int argc, char **argv)
{
QApplication a(argc, argv);
QImage img;
QPixmap pix(img); // <-- will always crash
}
Harri.