Search QString in QComboBox

c++, qcombobox, qstring, qt4, search

Solution

I think that the findText method is what you're looking for

Problem

How can I find a QString in a QComboBox? I want to get the index of the element in the combobox that's corresponding to my string. Is there a native method? Thanks in advance.

Original source