In your view, you handle the right mouse click.
Keep track of the currently exclusive index.
When right clicking, check if the currently exclusive index = the new exclusive index. If not, set it and reset the other.
Use setData of your model and a custom role for example.
The delegate looks at the custom role and paints a different background.
Bookmarks