unrolling qt event loop.