O'Reilly logo

Qt 5 Blueprints by Symeon Huang

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

Merging plugins and main program projects

It is a tedious thing that opens several projects and builds them in order. This is not a big deal given that we have just two plugins and a main program. However, it'll become a serious inefficiency issue once the number of plugins increase. Therefore, it is a better practice to merge the plugins into the main project and get them built in a specified order every time we click on the Build button. It's totally feasible and is commonly seen in Qt projects.

Firstly, we move all the files in the painter_demo directory, except for the EllipsePlugin and TextPlugin folders, into a newly created main folder.

Then, rename the painter_demo.pro to main.pro in the main folder while creating a new painter_demo.pro ...

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