PRO 文件中加入以下语句即可 #OpenMP QMAKE_CXXFLAGS += -openmp QMAKE_LFLAGS += -openmp 转载于:https://www.cnblogs.com/cheungxiongwei/p/9173469.html