Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How to do this?
@ QString("hello " + "newbie!"); @
For example @QString foo = "bar" + "desu";@ or @QString("%1%2").arg("str", "another");@
Thanks but this is not what I wanted: I wanted to use that form as in c# because it is cleaner to read.
Cleaner to read or not (it's subjective), this isn't C#.
no way so?
@ QString("hello " "newbie"); @
:-)
In C++, you can only overload binary operators if, at least one of the types is a non primitive type. So, as pointers are primitive, you can't use the + operator on (const char*, const char*)
0k. thank you!