Qt Code:
  1. #include <stdlib.h>
  2. #include <QtCore/QTimer>
  3.  
  4. void check(){
  5. //perform a check every 10 secs
  6. }
  7.  
  8. int main()
  9. {
  10. QTimer *timer = new QTimer;
  11. connect(timer, SIGNAL(timeout()), this, SLOT(check()));
  12. timer->start(10000)
  13. return 0;
  14. }
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!