Oops, this happens from time to time, especially if you do not change the .pro file.Configuration unchanged, skipping qmake step.
This means the main.cpp file doesn't get processed by qmake resulting in a Makefile not calling the meta object compiler. This results in no .moc file being generated.
Solution: Clean the project and rebuild.
Bookmarks