Hi All,
I am using Qt 4.7.4 with Mingw 4.4. I have a weird problem when setting qlabel to display an image. In debug build, the image shows correctly in the label. But in release build, image doesn't show. But label itself is re-sized according to image. (I resize it with label->resize()) but image doesn't show. What might be the problem?
ui->label->setPixmap(QPixmap("c:/images/image.tif"));
ui->label->resize(ui->label->pixmap()->size());
Thanks.
Asanka
Bookmarks