Hi,
I have issue with Highlighting cell of tableView with my own delegate (checkbox), i used this code :
if(option.
state & QStyle::State_Selected) {
painter->fillRect(option.rect,option.palette.highlight());
}
if(option.state & QStyle::State_Selected)
{
painter->fillRect(option.rect,option.palette.highlight());
}
To copy to clipboard, switch view to plain text mode
this works but the problem is that when the focus of table is changed the color of selected row have to be gray but in my table the color of my delegate cells will stay dark blue(state_selected).
How to fix that?
thanks
Bookmarks