Hello again 
I would like to show a QProgressBar while a function is running:
t->start(1000);
pd->show();
getTransfers(); //has some QCoreApplication::processEvents() that increment the ProgressBar
t->stop();
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();
To copy to clipboard, switch view to plain text mode
The QProgressDialog is shown right after getTransfers() is finished, not before. Why?
Kind regards,
HomeR
Bookmarks