I tried to show a progressbar during some operation. However, I don't know how many times it will takes so that the percentage can't be calculated. It seems that Windows has a progressbar style like this:
I tried to implement this style by setting both maximum and minimum to 0:
ui->progressBar->setMaximum(0);
ui->progressBar->setMinimum(0);
It seems that I did it, except the fact that it really won't stop until the program exits, despite that I called reset() function trying to stop it.
So my question is how to implement this kind of progressbar correctly?