Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是的,你这里有两个问题:
缺少生成 moc 的 cmake 二进制目录的包含路径
${CMAKE_CURRENT_BINARY_DIR}
您需要在相应源文件的末尾包含 moc 文件
#include "moc_saction.cpp"