How to resize label font to fit size
Hi everyone,
how can I make a Label which resizes the font size so that the text always fills the whole label?
I tried it by playing with QFontMetrics and it more or less worked, but not rly good.
Is there a good way to do this, or is there maybe already a ready solution for this?
Re: How to resize label font to fit size
Since it is just geometry and mathematics, using QFontMetrics to calculate the new font size will produce accurate results.
Re: How to resize label font to fit size
Just a guess ;), try using QFontMetricsF instead of QFontMetrics!