No such slot- Problems comunicating Arduino and Qt
-
Hi!
Im trying to comunicate an Arduino with Qt Creator throw the Serial Port.The result gives the following error:
QObject::connect: No such slot MainWindow::serialRecieved() in ..\wakwaka\mainwindow.cpp:23
QObject::connect: (receiver name: 'MainWindow')
Thanks for your help -
Cant post the code, I receive an error that sais it can be SPAM.
But I took it from thise tutorial:
https://www.youtube.com/watch?v=UD78xyKbrfk -
Hi and welcome to devnet,
Are you sure you declared a slot with that name in your MainWindow class definition ?
Something like:
@
public slots:
void serialReceived();
@ -
Did you implement it ?
-
Possibly a typo? You've got "serialRecieved" in the connect call and "serialReceived" as the member name.