Unsolved add color label to QHBoxLayout?
-
is there anyway to add color coding label/box into QHBoxLayout? like green, blue etc
-
Hi,
What exactly are you trying to achieve ?
-
NVM figure it out
@SGaist said in add color label to QHBoxLayout?:
Hi,
What exactly are you trying to achieve ?
i'm try to put color label inside QHBoxLayout so in my qtpaint plot, user know green color represent certain category.
for example if "apple" label color is green, "strawberry" label color is red. and in my plot, a red line indicate its associate with strawberry, a green line indicate its associate with apple.
but i dont know how to turn my qt label into color words.
-
So you want to have a set of QLabels each of a different color in your layout ?