Marco Carletti
Marco Carletti

Reputation: 348

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.

Upvotes: 3

Views: 781

Answers (1)

Jokahero
Jokahero

Reputation: 1074

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

Upvotes: 6

Related Questions