Dear all,

this is a bit stupid. I had a working environment with QT5.4 and Qtcreator. I just upgraded to QT5.6 and qtcreator to 3.1, when I now want to recompile by code I get:

Qt Code:
  1. fatal error: QLabel: No such file or directory
  2. #include <QLabel>
To copy to clipboard, switch view to plain text mode 


So before this was working fine, I could compile without error, but now I need to specify

Qt Code:
  1. #include <QtWidgets/QLabel>
To copy to clipboard, switch view to plain text mode 

etc. My code is quite large with many includes, do I really need to specify QNetwork, QWidgets etc. for every include?? or do I have a an environment variable set wrong or missing?

I also have lots of warning such as

Qt Code:
  1. Makefile:1248: warning: overriding commands for target `moc_mainwindow.cpp'
  2. Makefile:1064: warning: ignoring old commands for target `moc_mainwindow.cpp'
To copy to clipboard, switch view to plain text mode 


I run on Ubuntu,

which qmake
/opt/Qt5.6.0/5.6/gcc_64/bin/qmake