Qt:中文乱码

在pro文件中加入:

QMAKE_CXXFLAGS+=/execution-charset:utf-8
即可
不为其他,只为快乐!
原文地址:https://www.cnblogs.com/1521299249study/p/11833000.html