#include <QtGui> doesn't work
-
-
Hi,
In Qt 5, widgets have been moved in the QtWidget module.
-
Qt 5 has many major changes compared to Qt 4. The code is mostly backwards compatible, but you need to change your configurations and headers.
Add this line to the .pro file...
@
QT += widgets
@...and use #include <QtWidgets> instead of #include <QtGui>
More info at http://qt-project.org/doc/qt-5.1/qtdoc/portingcppapp.html