Change size of qLabel frame when I update the labels text
-
Hey,
I'm sure its simple to fix but I cant find the solution anywhere
Basically my label will show 'RED', 'GREEN', 'BLUE' or 'NO COLOUR',
and I want to update the frame to be tight around the text, rather that set it to outline 'NO COLOUR', which then leaves loads of empty space when it displays 'RED'.I have tried to hard code the sizes (set size for each colour to yyyyxzzzz) but cant find a function that allows this
Thanks!
-
Hey,
I'm sure its simple to fix but I cant find the solution anywhere
Basically my label will show 'RED', 'GREEN', 'BLUE' or 'NO COLOUR',
and I want to update the frame to be tight around the text, rather that set it to outline 'NO COLOUR', which then leaves loads of empty space when it displays 'RED'.I have tried to hard code the sizes (set size for each colour to yyyyxzzzz) but cant find a function that allows this
Thanks!
-
S SOrton has marked this topic as solved on