Qt在新添加另外编辑好的窗口时,调用报错的解决方法

MyWindow.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall six::six(class QWidget *)" ([email protected]@[email protected]@@@Z) referenced in function "public: __thiscall MyWindow::MyWindow(class QWidget *)" ([email protected]@[email protected]@@@Z)

MyWindow.obj:-1: error: LNK2019: unresolved external symbol "public: virtual __thiscall six::~six(void)" ([email protected]@[email protected]) referenced in function [email protected]@[email protected]@@@Z$4

..\Win32\Debug\LinerProblem.exe:-1: error: LNK1120: 2 unresolved externals

 

Qt在新添加另外编辑好的窗口时,调用报错的解决方法

只要把下面build生成的文件夹删除,然后重新build

就是下的build 两个文件夹就可以了 

Qt在新添加另外编辑好的窗口时,调用报错的解决方法

 

另外说一下如果添加的资源文件如图片,像ico图标不显示问题,在生成的程序中不显示 ,就可以像上面删除build文件夹,就可以解决。