I want to fit text into a rectangle, but dynamically size the text like scaling
an image:
Rectangle {
width: // some with
width: // some height
Text { text: "Hello World"; anchors.fill: parent; font.pixelSize: ???<Dynamic> }
}In the old QWidget days, I'd use QFontMetrics to figure out what size would fit. Has this been solved for QML? _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
