I'm kind of new to QT programming, and I encountered this strange error when I was trying to have the program open a new dialog that I have created with a press of a button.
I am trying to open table.ui
, robotdance.ui
, and graph.ui
from scouting.ui
by pressing a button. In scouting.cpp
:
table *teamtable = new table(this); teamtable->show();
I have included the header files for the .ui's into the scouting.cpp
, but it's giving me this error:
scouting.obj:-1:
error: LNK2019: unresolved external symbol "public: __thiscall graph::graph(class QWidget *)" (??0graph@@QAE@PAVQWidget@@@Z) referenced in function "private: void __thiscall Scouting::on_actionGraphs_triggered(void)" (?on_actionGraphs_triggered@Scouting@@AAEXXZ)
Two more errors are shown which are similar to this one.
Why is this happening? I followed this guy's tutorial and did what he did but he doesn't seem to get any errors.
scouting.cpp:
table.h:
table.cpp
is in the additional comment section, since I can't post more than 2 links.