Answers for "undefined reference to vtable qt"

0

undefined reference to vtable qt

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!
Posted by: Guest on July-31-2020

Code answers related to "undefined reference to vtable qt"

Browse Popular Code Answers by Language