Qt didn't say that. Your linker did. You fix it by linking the OpenCV library that contains cv::VideoCapture, which ever that is. It may be you have the right library but wrong library search path so look at all the relevant linker output for mentions of unfound libraries etc.