progress.setCancelButton(0);

progress.setCancelButton(0);

| The Following User Says Thank You to d-iivil For This Useful Post: | ||



| The Following User Says Thank You to Nathraiben For This Useful Post: | ||
| The Following User Says Thank You to Joorin For This Useful Post: | ||
void MainWindow::on_pushButton_clicked()
{
QString varattu;
varattu = "Setting up the theme, please wait.";
QProgressDialog progress;
progress.setWindowModality(Qt::WindowModal);
progress.setWindowTitle(varattu);
progress.show();
progress.setValue(0);
QStringList arguments;
arguments << ui->Transition->currentText() << ui->Font->currentText() << ui->Color->currentText() << ui->Activate->currentText();
QProcess::execute("/sbin/launchblack", arguments);
progress.setValue(1);
}