[Qt-interest] Bug in QMacPixmapData::fromImage

Cédric Luthi cedric.lists at gmail.com
Fri Mar 20 11:00:38 CET 2009


Monochrome bitmaps are transformed to "transparent and white" instead
of "black and white"

Here is how to fix it:
Qt 4.5.0 src/gui/image/qpixmap_mac.cpp:306
replace
*(drow+x) = 0x00000000;
with
*(drow+x) = 0xFF000000;

Cheers.
Cédric




More information about the Qt-interest-old mailing list