Hi Bob,<br><br>I changed text in XML like this:<br><br><text><b><br>First Line</br>Second line</b></text><br><br>Its still displaying in a single line.<br><br>SOLVED: But I found the mistake in my code. I had set QLabel have the RichText text format. I removed that and its working now. <br>
Hope that will help someone. if there is a better way of doing it, please let me know.<br><br>Thanks & Regards,<br>Lata<br><br><div class="gmail_quote">On 31 March 2012 19:25, Bob Hood <span dir="ltr"><<a href="mailto:bhood2@comcast.net">bhood2@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 3/31/2012 7:41 AM, Lata Agrawal wrote:<br>
> I don't want to use wordwrap because I want to control where to insert line<br>
> breaks in the string displayed. In code, I re-formatted the string read from<br>
> XML file as string read from XML file is converted from \n to \\n.<br>
<br>
</div>I'd probably try changing "\n" to "<br>" and see what that does.<br>
<br>
<br>
<br>
Render me gone,                       |||<br>
Bob                                 ^(===)^<br>
---------------------------------oOO--(_)--OOo---------------------------------<br>
    I'm not so good with advice...can I interest you in a sarcastic comment?<br>
<br>
_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank">http://lists.qt-project.org/mailman/listinfo/interest</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><u><font><font face="tahoma,sans-serif">                                 <br><br></font></font></u><font><font face="tahoma,sans-serif">Lata Agrawal<br>Senior Developer<br>
9699750643<br>En Route Media Pvt. Ltd.<br><u>                                 </u><br></font></font><br>