Ah, I have found the answer:


progress = new QProgressDialog ;
progress->setCancelButtonText(0); // makes it so that no cancel button appears.