homerun4711
17th January 2011, 16:42
Hello again :)
I would like to show a QProgressBar while a function is running:
t = new QTimer(this);
pd = new QProgressDialog("Operation in progress...", "Cancel", 0, 100);
t->start(1000);
pd->show();
getTransfers(); //has some QCoreApplication::processEvents() that increment the ProgressBar
t->stop();
The QProgressDialog is shown right after getTransfers() is finished, not before. Why?
Kind regards,
HomeR
I would like to show a QProgressBar while a function is running:
t = new QTimer(this);
pd = new QProgressDialog("Operation in progress...", "Cancel", 0, 100);
t->start(1000);
pd->show();
getTransfers(); //has some QCoreApplication::processEvents() that increment the ProgressBar
t->stop();
The QProgressDialog is shown right after getTransfers() is finished, not before. Why?
Kind regards,
HomeR