PDA

View Full Version : How can I create a transparent image with QImage?



learning_qt
28th January 2009, 15:06
Hello,

I hope to create a transparent image with the class QImage. How can I do?

Thanks!

^NyAw^
28th January 2009, 16:06
Hi,

Try creating a QImage with QImage::Format_ARGB32. Then you have to set "A" value of each pixel to 0 for full transparency or 255 for normal color.

Have not tried.