PDA

View Full Version : Combo with multi-line underlying list?



Avrohom
27th August 2009, 20:31
Hi, I want to implement a Combo box with an underlying list that contains TextEdit-like - preferrable rich text format - (multiline) cells.

In the Combo control itself, one line is fine. Also, the list of course, shouldn't be editable (which saves us from using a editor factory, in case we subclass a ItemDelegate).

Any suggestion on what's the best approach?

wysota
27th August 2009, 22:36
Implement your own delegate for the combo.

Avrohom
28th August 2009, 00:04
Do you mean for the underlying view?

wysota
28th August 2009, 01:32
QComboBox::setItemDelegate()