QString MainWindow::GetClientNames(int)' member function declared in class 'MainWindow' QString MainWindow::GetClientNames(int Client) { ^
Unsolved
General and Desktop
-
wrote on 4 Apr 2016, 13:33 last edited by
Hi I'm new at Qt and I'm about to make my first software But I have many problem -_-
Here is a screen of my problem :http://i.imgur.com/qAskhll.png
Thanks
-
Hi and welcome to devnet,
You have no GetClientNames function in your class declaration. You must first add it there.
Note that it's not something Qt specific but C++ in general.
-
Hi I'm new at Qt and I'm about to make my first software But I have many problem -_-
Here is a screen of my problem :http://i.imgur.com/qAskhll.png
Thanks
@I_Need_Help
You need to declare the method in the header, not only provide definition in the source file:class MainWindow : public QMainWindow { Q_OBJECT // ... QString GetClientNames(int); //< You need this };
1/3