亲测可行,首先你要明白你自己OpenCv的安装目录,然后再干这件事
明白了之后就可以开始了
在QT的pro文件下,添加如下代码,并且选择版本为release版本运行
INCLUDEPATH += D:\OpenCv\opencv\build\include
INCLUDEPATH += D:\OpenCv\opencv\build\include\opencv
INCLUDEPATH += D:\OpenCv\opencv\build\include\opencv2
LIBS +=D:\OpenCv\opencv\build\x86\vc11\lib\opencv_calib3d2410.lib
LIBS +=D:\OpenCv\opencv\build\x86\vc11\lib