hvw59601,

I ran into the same problem as yours. The problem is you have to pass the pointer to QProgressDialog to the constructor of QProgressBar.

Like this:

Qt Code:
  1. QProgressBar* progress = new QProgressBar(&dialog);
  2. progress->setFormat(" ");
  3. progress->setMaximum(0);
  4. progress->setMinimum(0);
  5. dialog.setBar(progress);
To copy to clipboard, switch view to plain text mode 

I hope that helps.