Unsolved Memory difference between QMap<MyInst,QColor> and QMap<MyInst,QString)
-
Can u tell me how to represent integer for colors because we can have millions of colors ?
-
@Qt-Enthusiast 32bit integer can represent billions of values/colors.
RGB - means 1byte for red, 1byte for green and one byte for blue. Since 32bit integer consists of 4 bytes you still have one byte for alpha channel. -
-
What exactly do you want to do with that map ?