Quote Originally Posted by hind View Post
I want to know if there is a more specialized class in Qt which can do this work.
No, there is no such thing. Either you're using an event loop (in which case you can just use events to do what you want) or you're using a simple while loop in which case you're on your own.