title: no member function declared in class 'MainWindow'
body: <p>I'm trying to make a fake FBI program for a prank, but it's not as easy as I expected it to be.
  This is my code.</p>
  
  <pre><code>#include "mainwindow.h"
  #include "ui_mainwindow.h"
  
  MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
      ui-&gt;trackConnButton-&gt;setEnabled(false);
  }
  
  void MainWindow::on_confirmButton_clicked() {
      if (ui-&gt;usernameText == "name" &amp;&amp; ui-&gt;passwordText == "password") {
          ui-&gt;resullabel-&gt;setText("Password accepted.");
          ui-&gt;trackConnButton-&gt;setEnabled(true);
      } else {
          ui-&gt;resullabel-&gt;setText("Password denied.");
      }
  }
  
  MainWindow::~MainWindow()
  {
      delete ui;
  }
  </code></pre>
  
  <p>I get this error: </p>
  
  <pre><code>D:\Qt-Projekte\test3\mainwindow.cpp:12: Fehler: no 'void MainWindow::on_confirmButton_clicked()' member function declared in class 'MainWindow'
   void MainWindow::on_confirmButton_clicked() {
                                             ^
  </code></pre>
  
  <p>My question is now: how to fix it?
  Thanks in advance.</p>
  
  <p>my mainwindow.h:</p>
  
  <pre><code>#ifndef MAINWINDOW_H
  #define MAINWINDOW_H
  
  #include &lt;QMainWindow&gt;
  
  namespace Ui {
  class MainWindow;
  }
  
  class MainWindow : public QMainWindow
  {
      Q_OBJECT
  
  public:
      explicit MainWindow(QWidget *parent = 0);
      ~MainWindow();
  
  private:
      Ui::MainWindow *ui;
  };
  
  #endif // MAINWINDOW_H
  </code></pre>