use QThread and slot to refresh progressbar

1. use QThread and slot to refresh progressbar
2. use slot to pop messagebox