QString str;LPXXWSRE wStr = str.toStdString().c_str(); 转载于:https://blog.51cto.com/sysq2012cto/2074352