编译好的Qt OpenCV包可以直接调用Qt OpenCV Mingw只需要在.pro文件中加入opencv包的路径例如INCLUDEPATH D Dependencies opencv mingw build qt install include LIBS D Dependencies opencv mingw build qt lib libopencv.a LIBS D Dependencies opencv mingw build qt install x64mingw lib libopencv.a