Qt-dialog.obj:-1: error: LNK2019: Unresolved external symbol

created at 10-08-2021 views: 9

problem description

Today, I use QT 5.8 to design the interface and create a new interface class class InputDialog. The class declaration is in the dialog.h header file, but it just compiles, and always reports

dialog.obj:-1: error: LNK2019: unresolved external symbol error

After testing, all members of the class InputDialog cannot be identified in the dialog.h file

Finally found a solution

Is compiled and generated from the previous project

build-DialogExample-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug

Delete the folder and recompile

created at:10-08-2021
edited at: 10-08-2021: