usleep is not working on windows, use QThread::usleep

Shoud fix #1082