PyQt Different colors in a single row in a combobox
问题 I'm developing a UI using PyQt where a single item in my Qcombobox can have two or three words separated by commas. So for eg item 1 can be ' Text1, Text2, Text3 ' and item 2 will be ' Text4, Text5 '. What I want to do is give multiple background colors to the items separated by the ',' in the itemText. So, in case of item 1 (' Text1, Text2, Text3 ') I would need a color behind Text1 , a different one behind Text2 and a third one behind Text3 . Similarly, item 2 would have 2 background colors