SourceForge has been redesigned. Learn more.
Close

#12 multi-line string fails in label

closed-duplicate
nobody
None
5
2002-11-04
2002-11-03
Anonymous
No

Using Qt Designer, I created a label containing a
2-line string:
testing
testing

It produced a .ui file containing:

<string>testing
testing</string>

and a .cpp file containing:
TextLabel2->setText( trUtf8( "testing\n"
"testing" ) );

That looked a bit strange to me, but my C++ is very
rusty. And it worked just fine.

Then I tried

puic -o Form1.pm form1.ui

which generated the same thing in Form1.pm:

TextLabel2->setText(trUtf8("testing\n"
"testing"));

and perl understandably choked.

With a single-line string, everything worked fine.

Discussion

  • germain garand

    germain garand - 2002-11-04
    • status: open --> closed-duplicate
     
  • germain garand

    germain garand - 2002-11-04

    Logged In: YES
    user_id=145773

    Hi,
    This issue was fixed in CVS quite sometime ago,
    give it a try !

    Cheers,
    G.

     

Log in to post a comment.