As wysota said, QThread::run() is the method that you would like to have executed by the new thread. If you call it directly, obviously your current thread will execute it instead, in your case your test program.

What you actually want to do is start the manager so its run() method is executed by a new thread.

Qt Code:
  1. manager->start();
To copy to clipboard, switch view to plain text mode 

Cheers,
_