Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to make Text font size to be auto adjusted

$
0
0
It’s very simple. You need to explicit specify the width and height of your Text item and then specify minimumPointSize and fontSizeMode: Text {   width: parent.width   height: parent.height   font.pointSize: 100   minimumPointSize: 10   fontSizeMode: Text.Fit } fontSizeMode doesn’t work if you don’t explicit set the width and height to the Text items. Anchors is not enough.

Viewing all articles
Browse latest Browse all 4972

Trending Articles