View Single Post
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#36
Originally Posted by Diph View Post
I haven't tried this but maybe this helps...

http://doc.qt.nokia.com/qt-maemo-4.6...essdialog.html

E: Or use QDialog with QProgressBar.
Tried that already, but couldn't get it working. I propably misunderstood something because I cannot make the progressdialog to appear.

I'm trying to do it like this:
Code:
void MainWindow::on_pushButton_clicked()
{
    QProgressDialog progress("Setting up the theme, please wait...", "Abort", 0, 1, this);
    progress.setWindowModality(Qt::WindowModal);

    progress.setValue(0);
        QStringList arguments;
        arguments << ui->Transition->currentText() << ui->Font->currentText() << ui->Color->currentText();
        QProcess::execute("/sbin/myscriptlauncher", arguments);
    progress.setValue(1);
}
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE