It does work for me as well. I was just having trouble getting it to work with the default background color for selected items and white for selected+current.
I wonder why this isn’t default.. > On Aug 12, 2018, at 10:01 PM, Reinhardt Behm <rb...@hushmail.com> wrote: > > Hi Patrick, > > it works for me with this style. > > The attached picture show two selected rows (0 and 2) and one current, > unselected cell (1). > > -- > Best Regards > > Reinhardt Behm > > >> On Sunday 12 August 2018 21:06:28 Patrick Stinson wrote: >> Don’t forget to reply to all. >> >> Your example is interesting, and it does solve the problem of making the >> selected and current item stand out. I suppose there isn’t a way to do this >> and also show the current item when it is not selected. >> >> How strange that you can’t combine selectors as in CSS. >> >>> On Aug 12, 2018, at 8:42 PM, Reinhardt Behm <rb...@becker.com.tw> wrote: >>> >>> QTableView::item >>> { color:black; background-color:white; } >>> QTableView::item:selected >>> { color:green; } >>> QTableView::item:focus >>> { color:blue; } > <style.png> _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest