Details
Description
I go through normal steps to create a QObject-derived class with the Q_OBJECT macro but cannot build because the moc_*.cpp file is not generated.
Steps to reproduce:
1. Create a new Qt Console Application project
2. Add a new class derived from QObject
3. Edit the header file of the new class to add Q_OBJECT
4. Save. Observe moc_MyData.cpp appears in Solution Explorer
5. Build. Observe error:
Cannot open source file: 'GeneratedFiles\Debug\moc_MyData.cpp'
: No such file or directory
6. Verify on file system that GeneratedFiles\Debug folder structure
exits, but is empty; moc_MyData.cpp does not exist
I verified this behavior on my workstation and on two virtual machines with VS 2015 and VS 2013. All test systems have at least two versions of Qt: a Windows x64 Desktop Qt and a WEC2013 ARM Qt. Neither virtual machine had a prior version of VS Addin. On the virtual machines, I only set Windows x64 Desktop Qt 5.6.1-1 in the VS Addin.
Just as I hit "Create" I saw "Bug"... bug cannot find how to change this from a bug. This is really just a recommended change.