Search code examples
c++searchqt4qstringqcombobox

Search QString in QComboBox


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.


Solution

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