Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
4.8.0, 5.1.1
-
None
Description
When the programmer erroneously uses the SLOT() macro instead of the SIGNAL() macro in QObject::connect(), ie.:
connect(obj1, SLOT(somesignal()), this, SLOT(someslot()));
the error message is quite confusing:
QObject::connect: Attempt to bind non-signal Obj1::somesignal()
(even though Obj1::somesignal() actually is a signal).
This causes confusion - see this SO question: http://stackoverflow.com/questions/9518302/rutime-error-with-qtcpsocket-and-slots-and-signals