Qml Text new line
12,896
Solution 1
I don't know qt or qml, but in most languages the escape character is a backslash, not a regular slash, so the escape sequence would be \n
for a newline
Solution 2
Enter the text as "Hello \n World" it works
Author by
Gerharddc
Updated on June 20, 2022Comments
-
Gerharddc almost 2 years
If I enter: "Subject:" + "/n" + vak + "/n" + klas as the text property of a Text element it returns everything in a straight line with "/n"'s in.
How can I get it to create new lines?