Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QString MainWindow::GetClientNames(int)' member function declared in class 'MainWindow' QString MainWindow::GetClientNames(int Client) { ^
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.4k Views
  • 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 Offline
    I Offline
    I_Need_Help
    wrote on 4 Apr 2016, 13:33 last edited by
    #1

    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

    K 1 Reply Last reply 4 Apr 2016, 14:30
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Apr 2016, 14:29 last edited by
      #2

      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
      0
      • I I_Need_Help
        4 Apr 2016, 13:33

        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

        K Offline
        K Offline
        kshegunov
        Moderators
        wrote on 4 Apr 2016, 14:30 last edited by
        #3

        @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
        0

        1/3

        4 Apr 2016, 13:33

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved