Hi...
I am new to QT. I am trying to create an application which reads the data from the database. While retreving the data i want to show the progressbar.
Since i don't know how much time my application take for retreving the data from different databases, so I m using the busy Progressbar by setting Maximum/Minimum to 0/0.

Code:

"void MainWindow::on_Start_button_clicked()
{
static int count = 0;
progressBar->setMaximum(0);
progressBar->setMinimum(0);
progressBar->setValue(++count);
}

void MainWindow::on_Stop_button_clicke()
{
progressBar->reset();
}
"

using the above code I am able to see the busy ProgressBar but on clicking the Stop button I am not able to reset the progressBar... it still keep me showing the busy.

Please let me know what extra i have to do for resetting the progressBar.