#include <stdlib.h>
#include <QtCore/QTimer>
void check(){
//perform a check every 10 secs
}
int main()
{
connect(timer, SIGNAL(timeout()), this, SLOT(check()));
timer->start(10000)
return 0;
}
#include <stdlib.h>
#include <QtCore/QTimer>
void check(){
//perform a check every 10 secs
}
int main()
{
QTimer *timer = new QTimer;
connect(timer, SIGNAL(timeout()), this, SLOT(check()));
timer->start(10000)
return 0;
}
To copy to clipboard, switch view to plain text mode
Ok, this is the code.... i get error that connect() wasn't declared over here :/
What Qt library should I include to use connect() function? Thank you!
Bookmarks