Solved Why i am getting error when use new signal slot method ?
-
@Qt-embedded-developer
thethis
pointer is an instance of the classG3_Scan
?btw: using the old connect syntax might silently fail, but it doesnt mean that the old syntax is working. You would need to check the return value if the connection was successfully established.
-
@raven-worx i made the mistake due to use of &qTScanning. now my code is working . but i am not getting why i can not use &qTScanning?
-
@Qt-embedded-developer
Hi
because qTScanning is already a pointer -
@raven-worx How to check return value of successful connection ?
-
@Qt-embedded-developer
returntrue
-> success,false
-> failedbut simply dont use the old connect syntax anymore
-
@raven-worx sorry but can you give sample example ?
-
if( QObject::connect(qTScanning, SIGNAL(timeout()), this, SLOT(BlinkLabel())) ) qDebug() << "GOOD"; else qDebug() << "BAD";
-
@raven-worx Thank you
-
This post is deleted! -
@Qt-embedded-developer
try delete the build folder from file explorer and rebuild all