QList<QString> list; list << "1" << "2" << "3" << "4" << "5"; ui->comboBox->addItems(list); QString number = "3"; How to do so, if the number 3 was found in the comboBox list comboBox then the number 3 is selected in the same list as the currentItem at the same position as the number 3 in the comboBox ? Ie by pressing the comboBox selection of the number 3 is in the 3rd position.