I want to perform an update check, having a progressbar going from the one side to another. So, I have this code on the constructor of the dialog that shows the progressbar
ui->progressBar->setMaximum(0);
ui->progressBar->setMinimum(0);
ui->progressBar->setValue(-1); //these 3 first lines is to make the progressbar go from the one side to another
ui->progressBar->repaint(); //i don't know if this is needed
perform_check(); //after having the progressbar going, perform a check, a messagebox will be shown informing the user about the news and closing the whole dialog
ui->progressBar->setMaximum(0);
ui->progressBar->setMinimum(0);
ui->progressBar->setValue(-1); //these 3 first lines is to make the progressbar go from the one side to another
ui->progressBar->repaint(); //i don't know if this is needed
perform_check(); //after having the progressbar going, perform a check, a messagebox will be shown informing the user about the news and closing the whole dialog
To copy to clipboard, switch view to plain text mode
(read the comments)
Unfortunately, When I launch this dialog, everything freezes till i get the first messagebox, then (even if, when I press OK to the messagebox I have this->close() the window opens with the progressbar moving from side to side. I don't know what I'm doing wrong....
Can you help me? Thx
Bookmarks