Answer the question
In order to leave comments, you need to log in
How to fix "QApplication: No such file or directory" error?
When compiling a file in qmake, such an error takes off.
The code:
#include <QApplication>
#include <QTextEdit>
int main(int argv, char **args)
{
QApplication app(argv, args);
QTextEdit textEdit;
textEdit.show();
return app.exec();
}
Answer the question
In order to leave comments, you need to log in
On my machine, QApplication is in a QtWidgets subdirectory that you don't have in your path.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question