error: undefined reference to `vtable for

出现如下错误:
1
解决办法
当类中加入Q_OBJECT,需要手动删除中间文件,再构建

原文地址:https://www.cnblogs.com/zhangxuechao/p/11709380.html