However, you should use QProgressDialog::setValue()
That's the answer I was looking for. It wasn't clear to me, because you can setValue() with both QProgressBar and QProgressDialog.
Thanks again.