Convert WCHAR to QString in Qt

Harry Fox picture Harry Fox · Nov 7, 2011 · Viewed 25.6k times · Source

Convert WCHAR to QString in Qt. Please help me to implement it to complete this convertion.

Answer

There are to/from WCharArray methods that are static members of QString:

http://doc.qt.io/qt-4.8/qstring.html#fromWCharArray

http://doc.qt.io/qt-4.8/qstring.html#toWCharArray