int QComboBox::findText ( const QString & text, Qt::MatchFlags flags = static_cast<Qt::MatchFlags> ( Qt::MatchExactly | Qt::MatchCaseSensitive ) ) const
Returns the index of the item containing the given text; otherwise returns -1.
The flags specify how the items in the combobox are searched.
这个好像可以