QT中 QString转wchar_t*的方法

因为用到了  但是我忘记是哪里用到了 反正就是用到了

好像是QtXlsx中转换文件路径的时候用到的 

const wchar_t* wstr = reinterpret_cast<const wchar_t *>(filename.utf16());

就可以了

发布了239 篇原创文章 · 获赞 31 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/soulwyb/article/details/100007843