Problem with Qt empty projet
-
Hi,
I recommend starting with a "Qt Gui Application" or a "Qt Console Application" instead of a blank project. If you choose those, Qt Creator will help you set up some important parts.
But to answer your question:
Your .pro file is empty. You need to add the modules you want. All Qt projects automatically include the Qt Core and Qt GUI modules, but you'll need to add other modules yourself.
QApplication belongs in the Qt Widgets module. To include that, add the line "QT += widgets" to your .pro file.