PDA

View Full Version : How to use QCombobox as one of the columns in model derived from QAbstractItemModel



indrajit.jagtap
5th December 2012, 06:06
I have created the model QAbstractItemModel. I have set it to treeview and other columns to other UI components from editor (see image).
I want to use combobox as one of the UI components in editor. I have implemented it by referring to how I did it for QlineEdit. But, its not working. Definitely, I am missing out something. Any inputs in this regard or code sample will help.

Thanks,
Indrajit8477

anda_skoa
6th December 2012, 19:56
How does your code look like?

Do you use a QDataWidgetMapper or are you manually filling the widgets from model data?

Cheers,
_