Qt Linker Error: “undefined reference to vtable” [duplicate]

Any time you add a new call to the Q_OBJECT macro, you need to run qmake again. The vtables issue you’re referring to is directly related to that.

Just run qmake and you should be good to go assuming there are no other issues in your code.

Leave a Comment