PDA

View Full Version : Qt Designer and \n



TheRonin
8th November 2007, 17:01
This is probably a really easy question, but i'm having some difficulty anyway. A program i am working on in Designer has a QPushButton that should have multi-lined text. I can programmatically set the text to "abc\ndef" and get the desired result. When i try to set the text in the designer however, UIC escapes the \ so i get the following text: "abc\\ndef". How can i force the designer to either let me insert multi-lined text to begin with or not escape the \ ?

Thanks!

jpn
8th November 2007, 17:18
Try updating to Qt 4.3. It works for me with Qt 4.3.2 (but not with Qt 4.2.3).

TheRonin
8th November 2007, 17:19
Try updating to Qt 4.3. It works for me with Qt 4.3.2 (but not with Qt 4.2.3).

I'll try that, thanks!