Qt v4.8.0, compiler VC2010
I have a QMainWindow-based class and I'm trying to send its signals using QUuid
However, every time I run it, I get errors:
Object::connect: No such slot MainWindow::on_comp_connected(QUuid) in ..\..\src\mainwindow.cpp:143
Object::connect: (receiver name: 'MainWindow')
It makes me a handful since the slot definitely exists (it's in moc _)
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0, Qt::WFlags flags = 0);
~MainWindow();
signals:
void testSendQuuid(const QUuid &qcid);
public slots:
void on_comp_connected(const QUuid &qcid);
private:
QOpenAcnController *acnInt;
};
At the end of the MainWindow constructor (line 143 specified), I:
connect(acnInt, SIGNAL(callback_comp_connected(QUuid)),
this, SLOT(on_comp_connected(QUuid)));
Given that the slot is definitely present in the moc_mainwindow.cpp file (I checked its slot # 1), what could stop the connection from stopping?
If I try to connect the testSendQuuid (QUuid) signal to the slot, I do not receive any such signal or any such slot.
I cannot understand for life why Qt denies the existence of a slot, which is definitely there!
source