img.format() returns QImage::Format_ARGB32
Sorry about not including the pixmap. I was trying to snip out the relevant section of code and forgot to clip that line. It was just sourcing the box.png in a different way and can be ignored. The box.png image is an uniform image and has an alpha of 128. The output is
r: 0 g: 128 b: 255 a: 255
I found the problem though. It appears the QColor constructor doesn't use the alpha values, at least according to this thread.
http://www.qtforum.org/article/32132...-a-qimage.html
thanks.




Reply With Quote

Bookmarks