Greetings everyone,
so i was working on a project and i had a class sub-classing QObject added it as follows:
right click on the project in Qt creator >> add new >> C++ class >> set the base class to QObject. And in my .h class it automatically adds
Qt Code:
  1. #include <QObject>
To copy to clipboard, switch view to plain text mode 
.
so for a couple of weeks everything was working great but today i was building the project and it just gave an error : C:\X\Examplethread.h:4: error: C1083: Cannot open include file: 'QObject': No such file or directory.
cleaned the project , ran qmake , built it again and compiled in debug mood and the error kept. But when removing that automatically added include line from the .hpp class:
Qt Code:
  1. #include <QObject>
To copy to clipboard, switch view to plain text mode 
the problem is actually solved...
i found this a bit odd... so any explanation or help to make me understand what is going on is helpful.
Thanks in Advance.