views:

162

answers:

1

I am trying to use rich text in a QComboBox but it does not support it. Perhaps I should write a subclass? But I am unsure on what I would need to override as I have never done anything like this before. Please help. Thanks!

+1  A: 

I think custom delegate class is the answer. The solution is to simply replace standard drawing routine with your own (using i.e. QLabel). There was a similar question here: http://stackoverflow.com/questions/948444/qlistview-qlistwidget-with-custom-items

Mike Hordecki