I had the same problem, but my script was a bit different:
- VS2015 (QT plugin installed)
- Installed and configured QT SDK
This problem happened to me because I made "git clean -fdx" in my solutions folder and it deleted all the moc files because they were added to gitignore.
To restore MOC files, I had to:
- close VS2015
- reopen solution
- rebuild
After that, the moc files were restored and I can build correctly, but the application does not start.
source share