Okay, I got the apply -button to launch the script. Still haven't figured out how to get the text string from drop down menus to be put as variables. After that it should be pretty much done. I found this, but don't know what to do with it http://doc.qt.nokia.com/4.6/qcombobox.html#activated-2
ui->myComboBox->currentText(); //This property holds the text of the current item.
connect(ui->myComboBox, SIGNAL(currentIndexChanged(QString), this, SLOT(comboBoxCurrentIndexChanged(QString));
void MainWindow::comboBoxCurrentIndexChanged(const QString &text) { //Do something }