Qt预编译


1、在pro文件里

CONFIG          += precompile_header
PRECOMPILED_HEADER=$$PWD/precompile.h

可以将不会修改、第三方库文件放在precompile.h中