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, ...

Get Computer Vision with OpenCV 3 and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.