ui->myComboBox->currentText(); //This property holds the text of the current item.
| The Following User Says Thank You to d-iivil For This Useful Post: | ||
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
}

QStringList arguments;
arguments << "$variable1" << "$variable2" << "$variable3";
QProcess::execute("/sbin/myscript", arguments);
QStringList arguments;
arguments << ui->dropDownTransition->currentText() << ui->dropDownFont->currentText() << ui->dropDownColor->currentText();
QProcess::execute("/sbin/myscript", arguments);
QString transition = ui->dropDownTransition->currentText();
//Not empty
if (!transition.isEmpty()) {
//Do something
}
| The Following User Says Thank You to Diph For This Useful Post: | ||
QStringList arguments;
arguments << ui->dropDownTransition->currentText() << ui->dropDownFont->currentText() << ui->dropDownColor->currentText();
QProcess::execute("/sbin/myscript", arguments);
QString transition = ui->dropDownTransition->currentText();
//Not empty
if (!transition.isEmpty()) {
//Do something
}

QStringList arguments;
arguments << "$variable1" << "$variable2" << "$variable3";
QProcess::execute("/sbin/myscript", arguments);
QString variable1("string1");
QString variable2("string2");
QString variable3("string3");
QStringList myStringList;
myStringList.append(variable1);
myStringList.append(variable2);
myStringList.append(variable3);