Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 490
Marco Carletti Avatar asked Dec 21 '25 23:12

Marco Carletti


1 Answers

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

like image 78
Jokahero Avatar answered Dec 24 '25 12:12

Jokahero



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!