Thanks for this, but how do I put the input from those select boxes as arguments? And in which part of my project I should put these: Code: connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(hello())); Code: void MainWindow::hello() { QStringList arguments; arguments << "Enable custom transitions" << "Droid Sans" << "Black"; QProcess::execute("/path/to/my/script/script.sh", arguments); } I have these: Forms: - mainwindow-ui Headers. - mainwindow.h Sources: - main.cpp - mainwindow.cpp
connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(hello()));
void MainWindow::hello() { QStringList arguments; arguments << "Enable custom transitions" << "Droid Sans" << "Black"; QProcess::execute("/path/to/my/script/script.sh", arguments); }
#include <QProcess> #include <QStringList>