#include <opencv2/imgproc.hpp> in mainWindow.h
To add to what high_flyer said, if this is how you are including the opencv2 header files, then your -I directive needs to end with the "include" path, not "include\\opencv2".