} QStringWchar2QString(wchar_t*buf) { returnQString::fromWCharArray(buf); } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. demo: wchar_tpath[1024]={0}; GetModuleFileName(NULL,path,1024); qDebug()<<Wchar2QString(path); wchar_t*path2; path2=QString2Wchar("hello xiaohai"); wcout<<pat...
} QStringWchar2QString(wchar_t*buf) { returnQString::fromWCharArray(buf); } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. demo: wchar_tpath[1024]={0}; GetModuleFileName(NULL,path,1024); qDebug()<<Wchar2QString(path); wchar_t*path2; path2=QString2Wchar("hello xiaohai"); wcout<<pat...