QT报错:undefined reference to vtable for (class name)

来源:互联网 发布:崩坏3rd矩阵难度 编辑:程序博客网 时间:2024/04/21 00:06

原因:

1.类中的虚函数没有函数体.

2.类中有虚函数,没有虚析构函数.