Hi all,
I need some inputs to handle event in a delegate class.
I do have a tree view with a delegate where I overrided QAbstractItemDelegate::editorEvent() in order to implement specific behaviors. This tree supports multiple selection.
The cells contains text and icons.
Now, when the user clicks an icon, I would like to be able to retrieve the selected rows to enable/disable this icon for all those selected rows (see attached screenshot).
As a solution, I thought about doing it in the QAbstractItemDelegate::editorEvent() method, but I don't know how to retrieve the selected rows in the delegate? Maybe it's not possible? Maybe it's the way to do it?
Did somebody have any clue?
Regards,
Lionel


Reply With Quote



Bookmarks