I'm using Qt Creator, and this line is generated automatically by the Qt Creator:
#include <QtGui/QApplication>
But, why am I getting this message?
QtGui/QApplication: No such file or directory
Depending on the Qt-version (5) QtGui was moved to QtWidgets; so it becomes
#include <QtWidgets/QApplication>
You can try to add 'declarative' to the Project file:
QT += gui declarative
then
#include <QApplication>
It helps me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With