alizadeh91
10th April 2013, 08:41
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());
}
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
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());
}
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