Convert WCHAR to QString in Qt. Please help me to implement it to complete this convertion.
There are to/from WCharArray methods that are static members of QString:
WCharArray
QString
http://doc.qt.io/qt-4.8/qstring.html#fromWCharArray
http://doc.qt.io/qt-4.8/qstring.html#toWCharArray
I am trying to do something like this: QString string; // do things... std::cout << string << std::endl; but the code doesn't compile. How to output the content of qstring into the console (e.g. for debugging …
What is the most basic way to do it?
I have a QString in my sources. So I need to convert it to integer without "Kb". I tried Abcd.toInt() but it does not work. QString Abcd = "123.5 Kb"