SyntaxFix
Write A Post
Hire A Developer
Questions
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 <QtGui/QApplication>
with:
#include <QApplication>