title: Qt connect "no such slot" when slot definitely does exist
body: <p>Qt v4.8.0, VC2010 compiler</p>
  
  <p>I have a <code>QMainWindow</code> based class and I'm trying to send it signals involving <code>QUuid</code></p>
  
  <p>However, every time I run it I get the errors:</p>
  
  <pre><code>Object::connect: No such slot MainWindow::on_comp_connected(QUuid) in ..\..\src\mainwindow.cpp:143
  Object::connect:  (receiver name: 'MainWindow')
  </code></pre>
  
  <p>It's driving me potty as the slot definitely does exist (it's in the moc_)</p>
  
  <pre><code>class MainWindow : public QMainWindow
  {
  Q_OBJECT
  
  // SNIP private typedefs
  
  public:
      MainWindow(QWidget *parent = 0, Qt::WFlags flags = 0);
      ~MainWindow();
  // SNIP public methods
  
  signals:
     void testSendQuuid(const QUuid &amp;qcid);
  
  public slots:
     void on_comp_connected(const QUuid &amp;qcid);
  
  private:
  // SNIP private parts
  
  QOpenAcnController *acnInt;  // This is where the signal comes from
  
  };
  </code></pre>
  
  <p>At the end of the <code>MainWindow</code> constructor (the line 143 mentioned) I have:</p>
  
  <pre><code>connect(acnInt, SIGNAL(callback_comp_connected(QUuid)),
          this, SLOT(on_comp_connected(QUuid)));
  </code></pre>
  
  <p>Given that the slot is <em>definitely</em> there in the moc_mainwindow.cpp (I checked, it's slot #1), what on earth could be stopping the connection happening?</p>
  
  <p>If I try to connect the <code>testSendQuuid(QUuid)</code> signal to the slot, I get no such signal and no such slot as well.</p>
  
  <p>I cannot for the life of me figure out why Qt is denying the existence of a slot that is <em>most definitely there</em>!</p>