[Qt-interest] QLabel text decoration ignored

Arnold Krille arnold at arnoldarts.de
Fri Feb 13 12:31:43 CET 2009


Hi,

On Friday 13 February 2009 12:20:40 Jan Dinger wrote:
> I've a problem with QLabel. After a new line "\n" all other
> decorations will be ignored.
> ### snip ###
> QLabel* test = new QLabel(tr("Test text\n<b>Tip</b>"));
> ### snap ###
> In this part the new line break will be ignored. In other
> constructions the bold maker and the italic maker will be ignored too.
> What can I do to solve the problem.

You are mixing html and plain-text. Either use "\n" for line breaks and don't 
use markup. Or use the markup line break which is "<br />".

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090213/3126e6c3/attachment.bin 


More information about the Qt-interest-old mailing list