I wrote a custom delegate that renders a QComboBox. I installed it to a column with QTableView::setItemDelegateForColumn().
At some point later, I need to update the options in the combo box. How would I do this?
I wrote a custom delegate that renders a QComboBox. I installed it to a column with QTableView::setItemDelegateForColumn().
At some point later, I need to update the options in the combo box. How would I do this?
Access the editor and modify it. What's the problem?
The key was discovering QAbstractItemView::itemDelegateForColumn. Somehow I had missed this when glancing over the API docs.
Bookmarks