I am developing a Qt desktop application now. I need to show user indeterminate progress bar while my program is computing. I can't determine time of computing and can't determine number of steps, that's why in my realization using of an indeterminate progress bar is the only option. I tried to use QProgressDialog. The only variant that worked (I mean showed user progress bar) was something like that:
QProgressDialog dialog("Computing", "Cancel", 0, 0);
dialog.setWindowModality(Qt::WindowModal);
dialog.exec();
//further code
But as you can understand, that further code didn't work while dialog was executing.
I also tried to use method show(), but Qt didn't render the dialog window, I mean during calculation window was transparent.
So, could you suggest some solutions that will help me to show user progress bar and compute at the same time? Computing time may vary very much.