


Now you can import OpenCV libraries in Qt in mainwindow.cpp and start developing. You have finally connected OpenCV with Qt creator.

Please change path if you have installed OpenCV somewhere else.Īnd that’s it you are done. LIBS += -L"C:\\opencv\\build\\x86\\vc11\\lib" \ĭEFINES += QT_NO_WARNING_OUTPUT QT_NO_DEBUG_OUTPUT Place the following code at the end of this pro file. pro file is the configuration file like the project uses dynamic libraries and the paths to OpenCV libraries etc. You will have 3 folders and one file with. Or if you are expert programmer than you know what these classes names present.Īfter finishing creating your project. a Qt Quick Console 2 Application project named Main2 using Qt Creator 4. Leave as it is if you are not sure what to do. Project description Qt is set of cross-platform C++ libraries that implement. Select Next and it will ask you to enter details. If you have installed Qt after installing Microsoft Visual Studio than Qt will automatically detects the appropriate compiler, In this case its MSVC2012. If you are using MinGW compiler than you can follow this tutorial but here I have used Microsoft Visual C++ Compiler. In Windows operating system Microsoft Visual C++ and MinGw compiler for C language are more popular. See the link at the end of this article.Īfter naming your application it will ask you to select your Kit.
#QT CREATOR COMMUNITY HOW TO#
I will also guide you how to show image or video inside Qt application using OpenCV. A window will open and from there you select Qt Widget project as shown below:
#QT CREATOR COMMUNITY INSTALL#
Install Qt Creator Community and it will take few minutes depending on your Internet Speed and Performance of your computer.Īfter installing Qt, run the program and select Create New Project. If you haven’t done this yet please see this article. Goto their website and download the open-source version.īefore installing make sure you have already installed Microsoft Visual Studio and OpenCV already set –up and running. Above all Qt is cross-platform you need a very small modification and your program will have the ability to run on linux or android or any other platform. Qt is famous for developing GUI applications using C++ forms which are no more supported in Microsoft Visual Studio. If you are reading this post it means you have already developed your program/software/application in OpenCV command line interface.
