[SOLVED] QML: calculate size for Rectangle from child Text content
-
Hello,
I'm pretty new to QML and have following problem:
I have some Rectangle element with the Text element inside of it. Text of Text element is dynamic and wrapped by the rectangle width, font size is also dynamic. The problem is: I need to resize my rectangle by height so what the whole text content will fit in it. Is where any methods, functions, properties for that? -
Ups, found in the docu: "Text.paintedHeight":http://qt-project.org/doc/qt-4.8/qml-text.html#paintedHeight-prop is exactly what i need