[Qt-interest] \n problem...
Srdjan Todorovic
todorovic.s at googlemail.com
Wed Feb 10 17:17:11 CET 2010
On 10/02/2010, amulya rattan <talk2amulya at gmail.com> wrote:
> do\nyou\nreally\ncare\nabout\nthe\nmorgans
>
> Now the problem is, when i read this error message into a QString and then
> do a label->setText(justReadQString). This sets the label's text without
> taking care of \n. It shows the \n instead of putting further text into a
> new line.
I didn't check, but doesn't QLabel accept HTML formatting?
So instead of \n you could use <br>. Not sure if this will do
what you want but it doesn't hurt to try it out.
Srdjan
More information about the Qt-interest-old
mailing list