I'm using Qt creator 2.4. I need to use a string say hi"world"
in my code. I have tried to use Qstring
and std::string
and I know /
is the escape sequence character but the IDE doesn't understand it as an escape sequence and gives errors when I write:
"hi/"world/""
I can use any string format that can be converted into Qstring
. Any ideas what I'm doing wrong?
Use it like this:
QString output = "Hi \"world\"!";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With