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

Font.pixelSize Based On Text Width: Binding Loop

$
0
0
Hello, i want to change the font.pixelSize based on the contentWidth to make it fit into its parent.  font.pixelSize: contentWidth > parent.width ? (parent.width/contentWidth)*12 : 12 The problem here is that it is obviously a loop, is there any other way how i can make my text fit its parent width? Or how to resolve this loop?

Viewing all articles
Browse latest Browse all 4972

Trending Articles