QProgressDialog *progress = new QProgressDialog("Progress...", "", 0, 0, this);progress->setWindowModality(Qt::WindowModal);progress->setCancelButton(false);progress->setValue(1);Delay();progress->close();delete progress;