title: Qt4 slots and signals: Qt4 has trouble finding the signal
body: <p>I am trying to get the statusbar to update with the FPS of the contents of a QGLWidget. I have connected them as follows (In class MainWin):</p>
  
  <pre><code>glWidget = new GLWidget;
  ui.verticalLayout-&gt;addWidget(glWidget);
  
  connect(glWidget,       SIGNAL( updateFPSSignal(float)  ),
          this,           SLOT(   updateFPSSlot(float)    ));
  }
  </code></pre>
  
  <p>The slot is as follows:</p>
  
  <pre><code>void MainWin::updateFPSSlot(float fps){
  this-&gt;statusBar()-&gt;showMessage(QString::number(fps), 0);
  }
  </code></pre>
  
  <p>In the MainWin class definition, I have:</p>
  
  <pre><code>public slots:
      void updateFPSSlot(float fps);
  </code></pre>
  
  <p>And the signal is as follows: (From what I understand, this shouldn't be here, but the program refuses to compile without it).</p>
  
  <pre><code>void GLWidget::updateFPSSignal(float fps){}
  </code></pre>
  
  <p>I have the following in the GLWidget class definition:</p>
  
  <pre><code>signals:
      void updateFPSSignal(float fps);
  </code></pre>
  
  <p>After calculating the fps, I call:</p>
  
  <pre><code>emit updateFPSSignal(fps);
  </code></pre>
  
  <p>However, when the app starts up, the following is printed out:</p>
  
  <pre><code>Object::connect: No such signal QGLWidget::updateFPSSignal(float) in /Users/usm/Desktop/OGLTest/MainWin.cpp:12
  Object::connect:  (receiver name: 'MainWinClass')
  </code></pre>
  
  <p>None of the tutorials I've read seem to be any help, and I'm sure the fix is simple for someone more experienced.</p>
  
  <p>Thanks.</p>