PDA

View Full Version : Change index of QComboBox delegate in a QTreeView ?



enter
16th April 2014, 20:07
Hi,

I have a problem with my code : I have QComboBox delegate that I've managed to configure almost perfectly. But I just don't know how to change the QComboBox index from the QTreeView associated model. Does anyone know how can I achieve this ?

I hope I am clear enough.

Thanks for your help

anda_skoa
17th April 2014, 12:12
The delegate should get a call to its setEditorData() method when the data of the cell changes, allowing you to set the appropriate combobox index.

Cheers,
_