Dear Friends
I am trying to connect timeout() signal to a slot updateJobStatus(long ID), This updateJobStatus(long ID) should take an argument. If I dont put any argument in the function then its working fine. If I put arguments in the slot then its not working, check the code snippet below.
int jobID=34343;
timer = new QTimer(this);
connect(timer,SIGNAL(timeout()),this,SLOT(updateJo bStatus(jobID)));
timer->start(1000);
Now this updateJobStatus basically displays the ID on a regular interval.
But when I execute this program I can see
Object::connect: No such slot MainWindow::updateJobStatus(jobID) in src/mainwindow.cpp:1903
is it not possible to declare arguments in the solt. I am having some doubts in this
Can anyone clear my doubts. Thanks in advance.sujan
Bookmarks