I test a simple code using QImageReader
scene = new QGraphicsScene(this);
ui->graphicsView->setScene(scene);
QPixmap pixmap;
QImageReader reader("hubble.tif");
reader.setClipRect(QRect(0,0,8000,8000));
QImage img = reader.read();
if (img.isNull())
qDebug() << reader.errorString();
else
{
pixmap = QPixmap::fromImage(img);
scene->addPixmap(pixmap);
}
When I compiled it with Qt5.3.2_MSVC 2013_OpenGl 64bit and I tested it with an image 18000x18000 (thanks Nasa Hubble Image...), the program work without error. When I test the same program but compiled with Qt5.3.2_MSVC 2013_OpenGl 32bit, the program fail with reader's error "Unable to read image data" !
Is this a bug in Qt or just a limitation of 32bit version that not mentionned in Qt Documentation ?