durbrak
28th October 2006, 18:58
Hello,
I'm having some kind of weird problem. I have a small collection of jpg-images and I'm able to display almost all of them using QPixmap. However on some image files this just doesn't work. I just did a
myLabel->setPixmap(QPixmap("myimagefolger/12.jpg"));
So, I don't know what the problem is but I searched online for some pictures which QPixmap can't display. I found this:
http://ia.imdb.com/media/imdb/01/I/26/16/12m.jpg
To reproduce this behavior simply save this image on your hard disk and let your Qt program display it via QPixmap/QLabel (by the way, QPixmap::isValid() returns false on this image).
I'm using Qt 4.2.1 and 4.1.4 had the same problem.
Thank you guys in advance!
Edit:
Well, that's awkward - I just tried to open this image with Adobe Photoshop but Photoshop declined the image saying "Could not complete your request because an unknown or invalid JPEG marker type is found."
Is there some workaround/hack for this?
Edit 2:
Umm lol.. I just renamed the file from "12m.jpg" to "12m.gif" and now Photoshop can open it :D. So this basically means, that my Qt doesn't support GIF?
I'm having some kind of weird problem. I have a small collection of jpg-images and I'm able to display almost all of them using QPixmap. However on some image files this just doesn't work. I just did a
myLabel->setPixmap(QPixmap("myimagefolger/12.jpg"));
So, I don't know what the problem is but I searched online for some pictures which QPixmap can't display. I found this:
http://ia.imdb.com/media/imdb/01/I/26/16/12m.jpg
To reproduce this behavior simply save this image on your hard disk and let your Qt program display it via QPixmap/QLabel (by the way, QPixmap::isValid() returns false on this image).
I'm using Qt 4.2.1 and 4.1.4 had the same problem.
Thank you guys in advance!
Edit:
Well, that's awkward - I just tried to open this image with Adobe Photoshop but Photoshop declined the image saying "Could not complete your request because an unknown or invalid JPEG marker type is found."
Is there some workaround/hack for this?
Edit 2:
Umm lol.. I just renamed the file from "12m.jpg" to "12m.gif" and now Photoshop can open it :D. So this basically means, that my Qt doesn't support GIF?