Qt5.7 + VS2019: error C1083: 无法打开源文件: “..\Debug\moc_Agv.cpp”: No such file or directory 解决方法:删掉 Q_OBJECT ,再重新写。