what is the pixel depth of your bitmap?
Qt can only handle 8 or 32 bpp (not talking about QTopia now).
So if your bmp is not 8 bpp, then at best you will get a color distorded image (if anything) with your code.
If your bmp is more than 8 bpp, then you wont be able to use the color table.
At any rate, if your bmp is 8 bpp, you will have to use the 256 table, popluate the colors you are interested in, in the correct indexes, and the rest use 0 or something.
But the table it self must be a 256 indexed table.
Could you show the code where you initialize the bmp and QImage?
Bookmarks