O'Reilly logo

Qt 5 Projects by Marco Piccolino

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 sub-projects

Go ahead and create all the needed sub-projects in Qt Creator. We could envision the following code base structure:

# part2-cute_comics.proTEMPLATE = subdirsSUBDIRS += \    cutecomics/entities \    cutecomics/usecases \    cutecomics/gui \    ccpanels

The main sub-project will be called part2-cute_comics.pro, and should be generated from a Subdirs Project template. Its first three sub-projects (entitiesusecases, and gui) should also be generated from a Subdirs Project template, while the last one (ccpanels, short for cutecomics Panels) should be generated from a Qt Quick Application template.

Then, to each of the first three sub-projects, create and manually add a .pri file of the same name; for example:

# entities.proTEMPLATE ...

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