OSX build fails with the following if QApplication is not included.
error: incomplete type 'QApplication' named in nested name
specifier
connect(QApplication::instance(), SIGNAL(applicationStateChanged(Qt::ApplicationState)), this,
^~~~~~~~~~~~~~
/usr/local/opt/qt/lib/QtGui.framework/Headers/qwindowdefs.h:81:7: note: forward declaration of 'QApplication'