How to update Qcombobox delegate ?
-
Hi,
I have Qcombobox delegate and using that to set delegate for a row in a Qtableview (Qabstractitemmodel).
but i have to access the combobox delegate to change index in combobox.
How can i access the combobox an update the index ? this index is update on some conditionI have tried findchild and indexWidget and tried to access delegate but not succeed to get the index.
ComboDelegate* itemDelegate = (ComboDelegate*)m_DataView->itemDelegateForRow(5);
Plz suggest how to do..
Thankyou -
Hi,
When do you want to change the index ?
-
@n-2204 said in How to update Qcombobox delegate ?:
combo delegate
The delegate is not really a combobox, only when the user goes and edits the cell it actually becomes one so you just have to call
setData
on the undelying model holding the data