Cant guess problem from code.. seems ok.
One thing,, is ur Qt built with jpeg support ? try some other ".PNG" or ".ico" instead of JPG and see if it works
lerwys (28th April 2009)
Because you didnt built Qt with that support !But why does my Qt does not support .jpg image format?
You need to pass "-qt-libjpeg" argument to configure.exe while configuring Qt. Read "configure -help "
You can check the available image formats supported from your Qt version with QImageReader::supportedImageFormats ()
A camel can go 14 days without drink,
I can't!!!
Bookmarks