View Single Post
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#58
Originally Posted by Diph View Post
You can change QProcess::execute() to QProcess::start() which doesn't wait for process to finish.

Code:
QProcess *process = new QProcess(this);
process->start(program, arguments);
progress.exec();
Got the progress bar working with this. Allthough it never close itself even my script has finished it's job. How can I tell from shell script to the QT app that it's now done, close the dialog? My script has this on the last line: exit 0

And one more thing, how can I read a checkbox value to arguments? I tried to do it like this (check box is the last argument):
Code:
arguments << ui->Transition->currentText() << ui->Font->currentText() << ui->Color->currentText() << ui->checkBoxActivate->checkState();
But I'm getting this build issue:
no match for 'operator <<'

What did I do wrong (again)?
__________________
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

Last edited by d-iivil; 2010-07-17 at 12:20.