[Qt-interest] QString initialization with multiple strings/new line in one definition

Patric userqt at gmail.com
Sun Aug 30 12:05:13 CEST 2009


Oh, I've found the answers myself. >< 

Thanks anyway
  ----- Original Message ----- 
  From: Patric 
  To: Patric ; qt-interest at trolltech.com 
  Sent: Sunday, August 30, 2009 12:51 PM
  Subject: Re: QString initialization with multiple strings/new line in one definition


  Actually I'm asking only the second thing - about the new line. 

  Regards
    ----- Original Message ----- 
    From: Patric 
    To: qt-interest at trolltech.com 
    Sent: Sunday, August 30, 2009 12:44 PM
    Subject: QString initialization with multiple strings/new line in one definition


    Hello, 
    I want to do something like this : 
    QString myString = "stringA" + "stringB" + "stringC"

    just like in java. 
    Is there a way to do it without QString::append at every row ? 

    Also how to set a new line for a longer text, for example 

    QString longerText = "loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong" + 
                                    "text";



    Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090830/880d06de/attachment.html 


More information about the Qt-interest-old mailing list