I haven't said to leave the run() empty. Have have said to leave it "empty". So only initiate there a timer which periodically calls a slot of your thread. This is one way to avoid while(true) and sleep. (In the slot put everything you do in the while scope)
Bookmarks