I have installed the Qt5.1.1
and create a new Gui Application. The code in mainwindow.h shows:
#if QT_VERSION >= 0x050000
#include <QtWidgets/QMainWindow>
#else
#include <QtGui/QMainWindow>
#endif
I think it is fine. But when I run it, I have this:
error: C1083: Cannot open include file: 'QtGui/QMainWindow': No such file or directory
I know when I replace
#if QT_VERSION >= 0x050000
#include <QtWidgets/QMainWindow>
#else
#include <QtGui/QMainWindow>
#endif
to
#include <QtWidgets/QMainWindow>
it works.
I just wonder why the default code is wrong and how to make the defauly code right.
.pro
file code with error/problem, so I can help you. – Undercast