I get this weird linker error everytime I try to do this:
HelpDialog hDialog; hDialog.setModal(true); hDialog.exec();
mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl HelpDialog::HelpDialog(class QWidget *)" (??0HelpDialog@@QEAA@PEAVQWidget@@@Z) referenced in function "private: void __cdecl MainWindow::on_actionHelp_triggered(void)" (?on_actionHelp_triggered@MainWindow@@AEAAXXZ)
Maybe a silly question but does HelpDialog have these two functions correctly implemented ?
Yeah, it does.
Where is HelpDialog defined?
In a library?
In a *.cpp file?
If it is in a library - do you link your project against this library?
If it is in a *.cpp file - is it included in your project?
HelpDialog is defined in a header file.
@Coloriez Can you post the header file?
Did you implement HelpDialog(QWidget *) constructor (with implement I mean: does it have a method body)?