Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QString MainWindow::GetClientNames(int)' member function declared in class 'MainWindow' QString MainWindow::GetClientNames(int Client) { ^

    General and Desktop
    3
    3
    1215
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I_Need_Help
      I_Need_Help 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

      kshegunov 1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • kshegunov
          kshegunov Moderators @I_Need_Help last edited by

          @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
          };
          

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply Reply Quote 0
          • First post
            Last post