Stick to one thread and call processEvents in the loop.
That will make your gui responsive again.