Qt: Signals and slots Error: undefined reference to `vtable for

前端 未结 5 762
走了就别回头了
走了就别回头了 2020-12-03 16:54

Following example from this link: http://developer.kde.org/documentation/books/kde-2.0-development/ch03lev1sec3.html

#include 
#include 

        
5条回答
  •  忘掉有多难
    2020-12-03 17:41

    Maybe too late but... Had the same issue and fighted for a while to find where it comes from.

    Right click on your project and select “Run qmake” to for a new build of MOC classes. It usually does run automatically...

    The moc compiler generates the stubs and calls in moc_xxxx.cpp, and generates the vtable stuff

提交回复
热议问题