User selects one of possible entries from drop-down list (already drawn with some letters in other then default color). But this selected entry is displayed without color letters (which is understandable). How can I draw/print this text with my own drawing procedure to color some of letters?
I tried to work with paintEvent(). First I call QComboBox:aintEvent() so it would draw default control. Then I tried to use painter->drawTextItem(). Unfortunately - rect for this operation is different then whole control and my new colorful text didn't covered previous one. I don't want to use hardcoded tweaks and values to match my text and the one draw by default.
Are there other possibilities? Once again - I want to draw selected QComboBox text with my own color rules.