7

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?

Gerharddc
  • 3,921
  • 8
  • 45
  • 83

2 Answers2

8

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

keyser
  • 18,829
  • 16
  • 59
  • 101
1

Enter the text as "Hello \n World" it works

Ankit
  • 11
  • 1