June 2019
Intermediate to advanced
348 pages
8h 28m
English
In the previous subsection, we designed the UI of our new application, Literacy. Now, let's create the Qt project for it and set up its full UI in a Qt main window.
First, let's create the project in the Terminal:
$ mkdir Literacy/ $ cd Literacy/ $ touch main.cpp $ ls main.cpp $ qmake -project $ ls Literacy.pro main.cpp $
Then, we open the project file, Literacy.pro, and fill it with the following content:
TEMPLATE = app TARGET = Literacy QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets INCLUDEPATH += . # Input HEADERS += mainwindow.h SOURCES += main.cpp mainwindow.cpp
This is straightforward, as we have done this many times. However, it is still worth noting that we specify one header file and two source ...
Read now
Unlock full access