Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Display XML new line

$
0
0
Hello there, I have difficulties displaying a text that I get from a XmlListModel in a zone (sent when clicked on a ListView Item). The text appears without new lines. I basically do something like this: function changeDescription(newDesc) {     descText.text = "<b>Description:</b> " + newDesc } I tried to change the textFormat or even replacing the “<br/>” with “<br>” as it works on another string (but using “\n” didn’t improve either):  var newLineStr = newDesc.toString().replace("<br/>", "<br>") When I’m looking at the string in console, the new lines appear. Any help would be appreciated.

Viewing all articles
Browse latest Browse all 4972

Trending Articles