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

Patric userqt at gmail.com
Sun Aug 30 11:44:19 CEST 2009


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/b5e5c6e2/attachment.html 


More information about the Qt-interest-old mailing list