Hello again

I would like to show a QProgressBar while a function is running:

Qt Code:
  1. t = new QTimer(this);
  2. pd = new QProgressDialog("Operation in progress...", "Cancel", 0, 100);
  3. t->start(1000);
  4. pd->show();
  5. getTransfers(); //has some QCoreApplication::processEvents() that increment the ProgressBar
  6. 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