I have got different threads running and 1 of the thread calls

progressDlg.exec() once it is called it shows the dialog but most of the time I am not able to see the progress bar?