June 2019
Intermediate to advanced
348 pages
8h 28m
English
In this section, we will build the image viewer application from scratch. No assumptions are made as to what integrated development environment (IDE) or editor you are using. We will just focus on the code itself and how to build the application using qmake in a Terminal.
First, let's create a new directory for our project, named ImageViewer. I use Linux and execute this in a Terminal, as follows:
$ pwd/home/kdr2/Work/Books/Qt5-And-OpenCV4-Computer-Vision-Projects/Chapter-01$ mkdir ImageViewer$
Then, we create a C++ source file named main.cpp in that directory with the following content:
#include <QApplication> #include <QMainWindow> int main(int argc, char *argv[]) { QApplication app(argc, argv); QMainWindow ...Read now
Unlock full access