QApplication is a part of QtGui module, so you can't disable this module if you want to use it:
If you dont want gui module, use QCoreApplication.QT -= gui
Do you have files cv.h and highgui.h in directories specified in INCLUDEPATH variable ?like cv.h and highgui.h.
Bookmarks