undefined reference to `vtable for MainWindow'
General and Desktop
4
Posts
2
Posters
4.5k
Views
2
Watching
-
wrote on 1 May 2015, 20:08 last edited by
Hi
Created my first Qt project (Gui)
droped the button on the main form
and added a handler for this button clicking
and got this error.how can this be fixed and why this was raised in the trivial project?
-
Hi,
It generally means that at some point you added/removed the Q_OBJECT macro. In any case, re-run qmake and rebuild your project and you should be good to go
-
wrote on 1 May 2015, 20:22 last edited by
looks like a magic
rerun qmake/rebuild didn't solve the issue
but re-creating the project solvedthank you in any case!
-
wrote on 2 May 2015, 04:48 last edited byThis post is deleted!
1/4