QTmsvc加速编译并解决utf-8 预编译头文件 stable.h

原创
2017/12/31 15:54
阅读数 594
#ifndef STABLE_H
#define STABLE_H

/*
Useage:
CONFIG += precompile_header
PRECOMPILED_HEADER += stable.h
*/

#include <QtCore>
#include <QtGui>

#ifdef _MSC_VER
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#pragma warning (disable:4819)
#endif // _MSC_VER >= 1600
#endif // _MSC_VER

#endif // STABLE_H

注意: Qt Creator -> Options -> Text Editor -> Behavior -> File Encodings 更改设置为 "UTF-8" "Add If Encoding Is UTF-8"

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部