June 2019
Intermediate to advanced
348 pages
8h 28m
English
OK, we now know what the application will look like, so let's roll up our sleeves and set up the UI with Qt!
Name the project and the Gazer application. Now, let's create the project in our Terminal:
$ mkdir Gazer/ $ cd Gazer/ $ touch main.cpp $ ls main.cpp $ qmake -project $ ls Gazer.pro main.cpp $
Next, let's edit the Gazer.pro project file. First, we need to set up the application information and modules from the Qt library we will use:
TEMPLATE = app TARGET = Gazer INCLUDEPATH += . QT += core gui multimedia greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
We are now very familiar with qmake and the project file of a Qt project, so I don't need to explain this piece of code line by line here. ...
Read now
Unlock full access