Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to set moc on VS addin 1.1.6 and Qt 4.7.0



  • Vs addin 1.1.6 cannot automatically generate moc_???.cpp file...



  • It can, are you using vs2010? I found in vs2010 i had to right click on the file->properties->Item Type->Custom Build tool. After that I did a save on the file and it auto generated all the pre build stuff for it.



  • Both vs2010 & vs2008 have this problem...

    [quote author="steno" date="1285948281"]It can, are you using vs2010? I found in vs2010 i had to right click on the file->properties->Item Type->Custom Build tool. After that I did a save on the file and it auto generated all the pre build stuff for it.[/quote]



  • Wierd, works for me. All I do is add the Q_OBJECT macro and save the file and it generates everything needed to compile, both on 2010 and 2008....


Log in to reply