use Qt builtin sleep