Error c2065: ‘QAPP’: undeclared identifier [Solved]

error: qApp was not declared in this scope.

Solution: Add the Header File:
#include <QApplication>

Read More: