Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Font.pixelSize Based On Text Width: Binding Loop
-
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?