Qt sleep main thread. just like std::thread() run.