I would like to execute a shell command using qprocess, but I would like to pass diferent arguments:
Qt Code:
  1. QString prog = "/bin/bash";
  2. QStringList arguments;
  3. arguments << "-c" << "gksudo -- mount -o loop /media/100GB/test.iso /media/iso";
  4. QProcess* process = new QProcess(this);
  5. process->start(prog , arguments);
  6. process->waitForFinished();
  7. QString tmp = process->readAll();
  8. qDebug() << tmp;
  9. ui.textEdit->append( "Path to file: " + ui.label_dir->text() + ui.label_file->text() );
  10. ui.textEdit->append(tmp);
To copy to clipboard, switch view to plain text mode 

like these:

Qt Code:
  1. arguments << "-c" << "gksudo -- mount -o loop" << "/media/100GB/test.iso" << "/media/iso";
To copy to clipboard, switch view to plain text mode 

How can I do that?