VS2010 + Qt5.3.2 中文显示乱码的问题.

版权声明:随便转, 随便转.... https://blog.csdn.net/KISSMonX/article/details/39501391
#include "vs2010_qt_test.h"
#include <QtWidgets/QApplication>
#include <QtWidgets/QLabel>

#pragma execution_character_set("utf-8")  // 这句可以解决问题. 具体看下面的引用链接. 

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	VS2010_QT_Test w;
	QLabel * label = new QLabel("第一个Qt程序.尼玛.");

	label->show();
//	w.showMaximized();
	return a.exec();
}


参考文章: VC2010下Qt5的中文乱码问题


===========================================







猜你喜欢

转载自blog.csdn.net/KISSMonX/article/details/39501391
今日推荐