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 Updated to NodeBB v4.3 + New Features

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 2 Watching
  • 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_HelpI Offline
    I_Need_HelpI Offline
    I_Need_Help
    wrote on 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

    kshegunovK 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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_Need_HelpI I_Need_Help

        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

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on 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

        • Login

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