[Qt-interest] strange QPixmap::fromImage crash

R. Reucher rene.reucher at batcom-it.net
Thu May 27 09:45:03 CEST 2010


caius ligarius wrote:
> ...
> I have verified qImage by dumping this (qImage->bits()) to a file. All
> values are b/w 0-255 and am also able to view image correctly by loading
> this file in an external image viewer.
> 
> What is going wrong here?
I can't say what the cause of your crashes is, but I once had a similar 
situation loading - and painting - certain PNGs that were somehow 'corrupt'. 
Besides Qt paint engine crashes, I got warning messages telling me something 
about 'wrong iCCP chunks'... I then 'corrected' these images with scripted 
run through ImageMagick's 'convert' tool and the crashes were history. Not 
sure if this helps in your case, though.

Have fun, René
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/




More information about the Qt-interest-old mailing list