For example,I want load and show an image with code

Qt Code:
  1. #include <QtCore/QCoreApplication>
  2. #include<opencv.hpp>
  3. using namespace cv;
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QCoreApplication a(argc, argv);
  8. Mat image=imread("E:\\library\\Pictures\\images\\Lena.jpg");
  9. imshow("image",image);
  10.  
  11. return a.exec();
  12. }
To copy to clipboard, switch view to plain text mode 

If I choose msvc2010 release compiler in Qt Creator,the image will show correctly.But if I choose msvc2010 debug compiler,no image will show.