I am building my Qt Application with qmake -project
and qmake Prog.pro
.
When I run the Makefile I get this error:
mainwindow.h:11:21: fatal error: QtWidgets: No such file or directory
#include <QtWidgets>
I have to add the line
QT += widgets
To the .pro file to compile correctly. Is there a way to do this automatically?