In the project pro Add the following code to the file :
INCLUDEPATH += D:/opencv/build/include

win32:CONFIG(debug, debug|release): {
LIBS += -LD:/opencv/build/x86/vc12/lib \
-lopencv_core249d \
-lopencv_imgproc249d \
-lopencv_highgui249d \
-lopencv_ml249d \
-lopencv_video249d \
-lopencv_features2d249d \
-lopencv_calib3d249d \
-lopencv_objdetect249d \
-lopencv_contrib249d \
-lopencv_legacy249d \
-lopencv_flann249d
} else:win32:CONFIG(release, debug|release): {
LIBS += -LD:/opencv/build/x86/vc12/lib \
-lopencv_core249 \
-lopencv_imgproc249 \
-lopencv_highgui249 \
-lopencv_ml249 \
-lopencv_video249 \
-lopencv_features2d249 \
-lopencv_calib3d249 \
-lopencv_objdetect249 \
-lopencv_contrib249 \
-lopencv_legacy249 \
-lopencv_flann249
}

Be careful :

  • LIBS The path should correspond to Qt The use of VS edition .
  • -l Link is the current version of the dynamic link library file name ( No suffix ).

Reference resources :https://www.librehat.com/qt-5-2-vs2012-opencv-2-4-7-dev-environment-setup-tutorial/

stay Qt Creator Add OpenCV More articles about the library

  1. Qt creator Middle configuration opencv win7 64bit

    The original text of the configuration method comes from https://www.librehat.com/qt-5-2-vs2012-opencv-2-4-7-dev-environment-setup-tutorial/. Add , In Zhang Jing ...

  2. QT creator Use in opencv

    It's going to be used recently opencv Doing things with images , A lot of them use VS Add opencv, But I'm right VS I don't like it very much , Want to use QT Creator. I searched a lot of information on the Internet , It finally took a day , stay QT Creator Can be used on ope ...

  3. Qt Add OpenCV library

    Configure in Qt Medium OpenCV, I saw a lot of “ course ”, Eventual success . Take note of the process . Native configuration : window7 32 Bit system : qt-opensource-windows-x86-mingw492-5.5.1: Op ...

  4. How to be in Qt Creator Add the library file and header file directory

    In the use of QtCreator When developing image processing program, I want to add Opencv Library to handle graphics , Add header file , You need to edit the .pro File add the following to the file , The folder that contains the header file : INCLUDEPATH += ...

  5. QT creator Use in opencv Collect camera information

    Before that QT creator Successfully compiled on opencv, Due to the need of the project , You need to collect the camera information . So I collected some information on the Internet , I did it according to the picture , Finally, the simple success of the collection of information . open QTcreator, Create a new one w ...

  6. Qt Use in OpenCV library

    The original address :http://blog.sina.com.cn/s/blog_5c70dfc80100qwi3.html I'm in a good mood , Once wanted to give up using Qt Add OpenCV Digital image processing , Fortunately, I held on , today ...

  7. Qt Creator in ,include Paths contain processes ( Or how to find the corresponding header file )

    Qt Creator in ,include Paths contain processes ( Or how to find the corresponding header file ) utilize Qt Creator When developing programs , Need to include the use of #include To add a header file . Everybody knows ,#include <&g ...

  8. Qt Creator Use in qss It has no effect on interface beautification ( effect ) The problem of

    Recent research qt Interface development , Discover the use of qss After beautifying the interface, the effect is good , than mfc It's a lot more efficient , The beautification is also excellent . But in use qss In the process of beautifying the interface control, the file encountered a very strange problem , Confused me for a long time , I met again tonight , ...

  9. How to be in Qt Creator Import icon resources from

    This paper mainly describes how to use Qt Creator Create a resource file in , And import the icon file . When viewing the icon resource file , You can right-click the project file of the project -Open With- Resource editor , The effect is shown below : In the engineering documents of the project ...

Random recommendation

  1. Software product case analysis ----K rice app

    The first part research . evaluating 1.1 evaluating 1.1.1 First time experience 1.1.2 bug 1.1.2.1 bug Definition 1.1.2.2 chestnuts 1.1.2.2.1 A level 1.1.2.2.2 B level 1.1.2.2. ...

  2. 【 turn 】sqlserver Query how many tables there are in the database

    sql server Number table : select count(1) from sysobjects where xtype='U' Number view : select count(1) from sysobjects ...

  3. hdu 1171 Big Event in HDU( The generating function )

    link :hdu 1171 The question : This problem can be understood as n Items , The value and quantity of each item is known , The total items are divided into A,B Two parts , bring A,B As much as possible , And A>=B, seek A,B How much is the value of analysis : This question can be used ...

  4. mac Lower installation maven

    stay mac Next Use brew install ,brew install maven see maven edition mvn -version open Terminal, Enter the following command , Set up Maven classpath Add the following two lines ...

  5. hiho once The first 207 Zhou

    subject 1 : The Lastest Time The time limit :10000ms Single point time limit :1000ms Memory limit :256MB describe What is latest time you can make with ...

  6. leetcode114

    class Solution { public: void flatten(TreeNode* root) { while(root){ if(root->left){ TreeNode* pr ...

  7. SpringBoot Mybatis Paging plug-ins PageHelper

    add to maven To configure : <!-- Distributed plug-ins --> <dependency> <groupId>com.github.pagehelper</groupId&g ...

  8. 【 Reading notes 】《C The programmer From campus to workplace 》 Chapter four Variables and functions

    Reference resources : Contents: One . data type ( Redefining basic data types —— Normalization ) Two . Variables and functions  ( Naming rules , matters needing attention ) 3、 ... and . Static variables and their use One . data type ( Redefining basic data types —— Normalization ) 1. ...

  9. Golang stay Mac、Linux、Windows Cross compilation

    https://blog.csdn.net/panshiqu/article/details/53788067

  10. [LeetCode&amp;Python] Problem 461. Hamming Distance

    The Hamming distance between two integers is the number of positions at which the corresponding bits ...