I'd like to make a console app which outputs a message every second.
Could someone please show me how to do that?
All I find are examples for QTimer::sinlgeShot() for console apps.

Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QCoreApplication a(argc, argv);
  4. QTimer *timer = new QTimer(NULL);
  5. QObject::connect(timer, SIGNAL(timeout()), update, SLOT(msg())); ???????
  6. timer->start(1000);
  7. return 0;
  8. }
To copy to clipboard, switch view to plain text mode 

Thanks for helping.