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

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

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

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

 

C:\Qt\Qt5.6.2_static\bin\qmake -makefile -o Makefile my.pro
C:\Qt\Qt5.6.2\Tools\mingw492_32\bin\mingw32-make -j4 -release

posted @ 2016-07-22 21:32  findumars  Views(2311)  Comments(0Edit  收藏  举报