I have installed C++SDK that have Qt but when I try compiling a code linking QApplication it gives me the error:
Error QApplication: no such file or directory >
For QT 5
Step1: .pro (in pro file, add these 2 lines)
.pro
QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
Step2: In main.cpp replace code:
main.cpp
#include
with: