Падащо меню за настройки на QT comboBox ()

Qt Combobox Settings Drop Down Menu

//method one: / / Note that the index starts counting from 0, at this time is actually selected the fourth ui->comboBox->setCurrentIndex(3) //Method Two: //Qt Creator 4.6.2 Based on Qt 5.11.1 (MSVC 2015, 32 bit) version support method 2 (not supported by earlier versions, which version is supported by which version is not clear) / / Set the current text to set the event selection, it is worth noting that if the text is not in the combobox option, the default is to select the first ui->comboBox_2->setCurrentText('I')