I have a project in QT + Opencv, the code was working but I had to format the windows and now I'm trying to import the project again and this error appeared.
undefined reference to `cv::imread(cv::String const&, int)' in this line:
 mat = cv::imread(path);
although my code looks like this:
 QString caminho = QFileDialog::getOpenFileName(this, tr("Open File"),
                                       "",
                                       tr("Images (*.png *.tiff)") );
 std::string path = caminho.toStdString();
 mat = cv::imread(path);
I tried other string like codes like "image.png" and did not work.
Using OpenCV3, QT5.4, Mingw, Windows8.1
sorry my english
 
    