trying to do animation of window using QThreads.