QString 转换成 LPWSTR LPWSTR lpStr = (LPWSTR) QString("nihao").toStdWString().c_str(); 转载于:https://www.cnblogs.com/yinwei-space/p/10783780.html