Any idea how to make bg color of selected items in QtreeView in delegate ?
I want actually not background at all for selected items or hovered.
painter->fillRect(option.rect, palette.Window);
this does not work
thanls
Any idea how to make bg color of selected items in QtreeView in delegate ?
I want actually not background at all for selected items or hovered.
painter->fillRect(option.rect, palette.Window);
this does not work
thanls
Hi, check option.state if it is QStyle::State_Selected
Bookmarks