In this article we will see how we can select the item with the help of its content. By default when we create a combo box it shows the first item to be selected but we can change it, in order to do this we will use setCurrentText method.
Syntax : combo_box.setCurrentText(item)
Argument : It takes string as argument
Note : item should belong to the combo box item list
Please Login to comment...