After integrating Qt with Vs and trying to compile .pro file I\'m getting following errors:
Error 9 error LNK2001: unresolved external symbol \"public
I'm currently working with VS 2013 with QT 5.4 add-in. Building projects with the add-in makes it easier as the moc'ing is automatically handled. To prevent linker error problems with the Qt metaObject issues:
Comment out all instances of Q_OBJECT in all header files that contain it in the class declarations.
Build the solution
Uncomment all instances of the Q_OBJECT in the header files.
Rebuild the solution. This is where the all the all the header and cpp files are re-compiled with the moc'ing automatically done. The linker errors are in turn, taken care of.