QProcess process;
And then how do you run the script? process.???

To connect it I suppose you mean to do something like:

connect(this, SIGNAL(process.finished()), this, SLOT(HasFinished());

declaring in the .h

Qt Code:
  1. private slots: HasFinished();
To copy to clipboard, switch view to plain text mode