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

前端 未结 5 759
走了就别回头了
走了就别回头了 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:51

    Just Change your Main() as follows:

    #include 
    
    int main(int argc, char *argv[])
    {
        QApplication a(argc, argv);
        MyWindow w;
    
        w.show();
    
        return a.exec();
    }
    

提交回复
热议问题