Etienne Sandré-Chardonnal schreef op 17-4-2015 om 10:35: > Dear all, > > I'm struggling with this compilation error since this morning: > > ui_mainwindow.h:13: error: QtGui/QAction: No such file or directory > #include <QtGui/QAction> > > As the file name suggests, this is a header generated by qmake from a .ui > The QAction header is in QWidgets and not in QtGui, so the error is clear. > > What I did: > - This is a project ported from Qt4 > - I did add "QT += gui widgets" in the .pro > - I did delete the old build directory so that Qt5 re-generates all files > > > Any idea? Could it be that the .ui needs manual fix?
Do a bit of hunting for old ui_*.h files and delete them. Perhaps they are not (all) generated in the build directory? The ui files would not need manual changing to fix this. André _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest