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.
↧