在 .pro里加入 QMAKE_CXXFLAGS += /MP 将并行编译(VC),加快编译速度(姚冬的办法),或者-j4参数(MinGW)

但是只对VC编译器有效果。

另外还可以自己设置stdafx.h文件

http://www.zhihu.com/question/23045749

C:QtQt5.6.2_staticinqmake -makefile -o Makefile my.pro
C:QtQt5.6.2Toolsmingw492_32inmingw32-make -j4 -release

原文地址:https://www.cnblogs.com/findumars/p/5697192.html