Error QApplication: no such file or directory February 14, 2023 by Tarik In Qt 5 you now have to add widgets to the QT qmake variable (in your MyProject.pro file). QT += widgets