Same Error: No matching function for call to QObject::Connect...
Solved
General and Desktop
-
Re: No matching function for call to QObject::connect
Same Error Here.
My code is straight out of the online tutorial...
QObject::connect(quitbutton, SIGNAL(clicked()), app, SLOT(quit()));
Adding the "config" line has no effect.
-
Hi,
What version of Qt ?
On what OS ?
What compiler ?
What is the exact error message ?
Where exactly in your code ? -
@TMahoney1979 said in Same Error: No matching function for call to QObject::Connect...:
QObject::connect(quitbutton, SIGNAL(clicked()), app, SLOT(quit()));
Try
QObject::connect(quitbutton, SIGNAL(clicked()), &app, SLOT(quit()));
-
quitbutton - is it stack object or pointer of an object ? If stack object pass the the address like &quitbutton.