Qt 5 beta include files not found
General and Desktop
4
Posts
4
Posters
6.6k
Views
1
Watching
-
In Qt 4.8, widgets were in the Qt GUI module. In Qt 5, they have moved to their own Qt Widgets module.
Add this to your .pro file to load the Qt Widgets module (where QMainWindow now lives):
@
QT += widgets
@ -
All the modules moved from QtGui to QtWidgets.
So you most likely need to add Qt += widgets into your .pro-file.
-
thanks youuuuuu!!!