Change font size of button dynamically
Solved
QML and Qt Quick
-
First you need to know the size the text is going to require. You can determine that using a FontMetrics object.
Using that, you should be able to write a function that progressive decreases font size until the size fits -
First you need to know the size the text is going to require. You can determine that using a FontMetrics object.
Using that, you should be able to write a function that progressive decreases font size until the size fits@Asperamanca
thank you. As you tell me, FontMetrics is good to know text size.
But, it doesn't show actual size text of label which placed in layout.
I gave up. -