We won't know unless you implement the thread. The thread needs to emit a signal that will update the progress bar. I don't see that in your code.