Qt World Summit: Submit your Presentation

[solved]using another project's header in my current project ?

  • Hello ,

    I've created a custom dialog that replaces q input dialog to do what I need , it was a project file , however when I wanted to use it now , I included the path of the project in the pro file and I get include the header + use it's function just fine , but it gives me unresolved external symbol , lnk2019 , I know that it couldn't link it , but how am I supposed to solve this ? this is one of the errors:


    mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall Dialog::Dialog(class QWidget *)" (??0Dialog@@QAE@PAVQWidget@@@Z) referenced in function "private: void __thiscall MainWindow::Capture_Seconds(void)" (?Capture_Seconds@MainWindow@@AAEXXZ)


    *** I've tried to use qmake and rebuild the project but it didn't work.

    • I'm using qt creator**

  • I managed to solve it by clicking on the project and adding existing files + don't forget the ui file.

Log in to reply