O'Reilly logo

Computer Vision with OpenCV 3 and Qt5 by Amin Ahmadi Tazehkandi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing the code for a Qt project

Now that our user interface is completely designed, we can start by writing code for our application. Right now, our application is basically nothing more than a user interface and it literally does nothing. We need to start by adding OpenCV to our project. In Chapter 1, Introduction to OpenCV and Qt, you already saw a brief introduction about adding OpenCV to Qt projects. We'll now take that one step further and make sure our project can be compiled and built on all three major operating systems without changing anything, provided that OpenCV is correctly installed and configured using the instructions in Chapter 1, Introduction to OpenCV and Qt.

So, start by opening the project's PRO file in the code editor, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required