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

Setting up the console application project

We start by creating a new subproject called textual user interface (tui). For this subproject, we use Qt Creator's Qt Console Application template:

In part1-whats_in_my_fridge we should thus get the following project structure:

# part1-whats_in_my_fridge.proTEMPLATE = subdirsSUBDIRS += \    usecases \    entities \    repositories \    #gui \    tui

Looking into the tui subproject, we will find the tui.pro file, and a generated main.cpp.

The .pro file has got a bunch of qmake directives. Among these, we can see:

# tui.proQT -= gui...CONFIG += consoleCONFIG -= app_bundle...

The QT -= gui directive excludes the Qt ...

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