I'm a beginner in using Qt and OpenCV, and I have a small problem. My application works fine, but after closing it seems that opencv.exe (application name) is still in memory. Here is my code:
int main(int argc, char* argv[]) {
QCoreApplication a(argc, argv);
cv::Mat img = cv::imread("img.jpg");
cv::namedWindow("Image");
cv::imshow("Image",img);
return a.exec();
}
How to kill task with closing application window? I don't sure that I work correct with exec() function.