📜  未定义对 vtable qt 的引用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:46.949000             🧑  作者: Mango

代码示例1
Since QWidget has a virtual destructor, the compiler needs a vtable for your class. But your class doesn't have any virtual functions, so it didn't build one for your Communicate class.

Add a virtual ~Communicate() {}; to your class, and all will be well.

Yes, it took me some time to figure this out too!