Q:

Opencv is not working in Qt5.13. App is always crashing in windows

I have installed Qt5.13 and linked opencv version 4.0 . But application is crashing when I am trying to use opencv library; otherwise it will work 
.pro file 
 INCLUDEPATH += C:\opencv\build\include
 LIBS += -L"C:\\opencv\\build\\x64\\vc15\\lib" \
         -lopencv_world410

Mainwindow.cpp
   #include "mainwindow.h"
   #include "ui_mainwindow.h"
   #include "opencv2/opencv.hpp"

   MainWindow::MainWindow(QWidget *parent)
              : QMainWindow(parent)
              , ui(new Ui::MainWindow)
   {
        ui->setupUi(this);

        cv::Mat img = cv::imread("qq.jpg");
        cv::imshow("ee",img);
        cv::waitKey(0);
   }

   MainWindow::~MainWindow()
   {
       delete ui;
   }

Every solution is appreciated.

A:

opencv path was missing in "path" environment variable

