The plugin loader and user

Now, we will use the plugin that we created in the previous section of the book. Let's start by creating a new Qt Widgets Application Project. Let's name it Plugin_User. When the project is created, add the OpenCV framework to the *.PRO file first (you have seen enough of this already) and then go on to create a user interface similar to this:

  1. Obviously, you need to modify the mainwindow.ui file, design it to make it look like this, and set all object names as seen in the following screenshot:

Make sure to use the same types of Layouts as seen in the preceding picture.

  1. Next, add the cvplugininterface.h file to ...

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.