Qt+VS编译出错:Two or more files with the name of moc_Geometry.cpp will produce outputs to the same location

warning MSB8027: Two or more files with the name of moc_Geometry.cpp will produce outputs to the same location. This can lead to an incorrect build result.  The files involved are GeneratedFiles\Debug\moc_XXX.cpp, GeneratedFiles\Release\moc_XXX.cpp.
 
 
1、打开QT的Qt Project Setting
2、修改MocDirectory为: .\GeneratedFiles




posted @ 2018-05-14 09:57  朱小勇  阅读(1465)  评论(0编辑  收藏  举报