O'Reilly logo

OpenCV 2 Computer Vision Application Programming Cookbook by Robert Laganière

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

Creating a GUI application using Qt

Qt offers a rich library to build a sophisticated GUI with a professional look. Using Qt Creator, the process of GUI creation is made easy. This recipe will show you how to build an OpenCV application with Qt that a user can control using a GUI.

Getting ready

Start Qt Creator which we will use to create our GUI application. It is also possible to create a GUI without this tool, but the use of a visual IDE in which the widgets can simply be dragged and dropped is the easiest way to build a nice looking GUI.

How to do it...

Select Create New Project… and choose Qt GUI Application as seen in the following screenshot:

Give a name and a location to your project. If you then click on Next, you will see that the QtGUI ...

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