QML Text Element multi line spacing
-
wrote on 22 Feb 2018, 11:03 last edited by
I am using Text element with maximum line count as 2. Can someone please tell me how to extend space between two lines
-
I am using Text element with maximum line count as 2. Can someone please tell me how to extend space between two lines
@DonCoder
hi, havn't changed that yet, but I would guess thelineHeight : real
property is what you want to modifiy. Keep in mind, its a miltuplier by default, set to 1.0 if you con't changelineHeightMode
-
wrote on 30 Apr 2018, 05:32 last edited by
@DonCoder
@J-Hilk solution is properLabel { anchors.centerIn: parent width: parent.width / 2 text: 'space between lines' wrapMode: Text.WordWrap font.pixelSize: 20 Rectangle { anchors.fill: parent; color: 'transparent'; border.color: 'black' } Component.onCompleted: console.log(lineHeight) lineHeight: 2 }