I am trying to call and show other window in mainwindow in Qt Creator. This below its my code:
ImageDialog imageDialog;
imageDialog->show();
but this is wrong and I see this error from Qt:
mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl ImageDialog::ImageDialog(class QWidget *)" (??0ImageDialog@@QEAA@PEAVQWidget@@@Z) referenced in function "private: void __cdecl MainWindow::on_pushButton_4_clicked(void)" (?on_pushButton_4_clicked@MainWindow@@AEAAXXZ)