Source files including the 'Q_OBJECT' or something like that need to be compiled by the 'moc' compiler of Qt. So when u start to build, compiler can't find the file that should have been already compiled by 'moc' compiler. There was a solution on the forum somewhere which was to adjust compilation priorities and add appropriate custom compile commands to make the file ready before the compiler starts looking for it.