版权声明:github博客地址https://ryanlee0129.github.io/wtf-blog/ 引用请注明 https://blog.csdn.net/u013288800/article/details/82626821
.pro文件添加
DEFINES -= UNICODE
DEFINES += UMBCS
执行qmake
构建
即可设置当前工程为多字节字符集
DEFINES -= UNICODE
DEFINES += UMBCS
即可设置当前工程为多字节字符集