[Qt-interest] Loading png files

Eirik Ulvik eiriku at simsurgery.com
Tue Sep 1 07:59:44 CEST 2009



Eirik Ulvik skrev:
> I am loading some rather large png files through the Qt resources 
> system. The files are 1280x1024 and contain an alpha channel.When the 
> images are loaded they get an image format that show up as RGB only. I 
> have other png images that I load and they get the correct format. These 
> images are smaller than the one that does not get correctly loaded. Does 
> anyone have a clue what might be going on?
>
> Eirik
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   
SOLVED.

Changed from QPixmap to QImage. QImage managed to load the png files 
with the correct format.

Eirik



More information about the Qt-interest-old mailing list