[Interest] Setting current item text color via stylesheet in QTableView for SelectRows

Patrick Stinson patrickkidd at gmail.com
Mon Aug 13 06:06:28 CEST 2018


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 <rbehm at becker.com.tw> wrote:
> 
> QTableView::item
> { color:black; background-color:white; }
> QTableView::item:selected
> { color:green; }
> QTableView::item:focus
> { color:blue;  }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180812/6e1c777f/attachment.html>


More information about the Interest mailing list