I recently installed VS Addin from Qt Software, and I imported my .pro project into VS2008. As a rule, everything works fine, with one small but annoying exception.
Suppose I have a .cpp file with a class that declares that it is Q_OBJECT. Thus, the MOC-ed file and moc_file.cpp are generated and available in the solution in the "Generated Files" section. So far so good.
The funny thing is, when I change something in the .cpp file (for example, add a line) and save the file using Ctrl + S, moc_file.cpp becomes excluded from the assembly (you can see the unsigned entry sign on the icon). And I hit many typical linker errors when I press F7 to build a solution. To fix this, I need to go to the properties of moc_file.cpp and change "Exclude from assembly" from "Yes" to "No". Then everything works fine.
Is someone else experiencing the same thing? Am I doing something wrong?
qt visual-studio-2008
prism
source share