8bit images use a colour look-up table thus the value you put as pixel data is the index in the colour table which is probably empty thus you get all black. QPixmap will always be 32b. Reading documentation really doesn't hurt - try it.
8bit images use a colour look-up table thus the value you put as pixel data is the index in the colour table which is probably empty thus you get all black. QPixmap will always be 32b. Reading documentation really doesn't hurt - try it.
Bookmarks