Use QThread's usleep instead of the unistd.h usleep function