Qml and dinamic text height
-
Having the number of the rows in a text object how can I increase the high of the text object?
text.lineHeight returns ever 1 and the not the high of the row in pixel. -
Can you help in adding more details to your question ?. This helps us to answer better.
-
Sorry but I haven't got a fluent english.
I have a quick text object. I will place some text in it and I want to increase or decrease its height property on the basis of how much of lines of text.
Is possible? -
Ugly but works
@ property real rowHeight: textHeight.height
Text{ id: textHeight; visible: false; text: "Hello World"}TextArea {
height: rowHeight * model.length
}
@