TChar转QString

1
2
3
4
5
#ifdef UNICODE
qs = QString::fromUtf16((ushort*)ts);
#else
qs = QString::fromLocal8Bit(ts);
#endif // UNICODE