Use signals and slots, then the event loop will run.
can you please elaborate it...