可以的,首先正弯获得到text的晌侍集合,int a;与显示的QComboBox进行比较,a++;最终就可以获得到宴清吵index
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.