Hi I have written an application in QT, which is supposed to execute a script, written already on ubuntu 14.04, but its not performing the function as desired. This is the piece of code which I have written.
void MainWindow::on_pushButton_clicked()
{
QProcess process ;
process.startDetached("/bin/bash", QStringList() << "path to file.sh");
}
What I am missing here? Thanx for valuable suggestions.