THANKS for replying.
But theres some initial problems with this approach.
Playing here with backgroundRole and the brush, if I use this code to color every other row green. Well the problem is that it is the background color of the cell
not the color of the selection indicator. So I am assuming it might not even be visible if I managed to call from view a change in model with custom setData() method.
But will play with it more I guess and try to make it work, I only need to indicate to user that shit went wrong on double click(text in status bar is already telling that but I feel some color emphasis would be nice), so flashing background of all rows red for 0.2sec would serve well as notice of this, even if bit less elegant than just that row...Qt Code:
elif role == Qt.BackgroundRole: if index.row() % 2 == 0:To copy to clipboard, switch view to plain text mode
![]()
Bookmarks