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.
>
It’s like there needs to be an extra rule to honor the selected and focus
states simultaneously, but ::item:selected:focus doesn’t work.
> On Aug 10, 2018, at 12:11 PM, Patrick Stinson wrote:
>
> Negative. “current” is not a valid pseudo state, as “focus” is the
> appropriate pseudo state for
Negative. “current” is not a valid pseudo state, as “focus” is the appropriate
pseudo state for the current item.
> On Aug 9, 2018, at 6:15 PM, Reinhardt Behm wrote:
>
> Hi Patrick,
>
> how about:
> QTableView::item:selected
> { color:green; }
> QTableView::item:current
> { color:yellow; }
>
On Tuesday 07 August 2018 16:31:42 Patrick Stinson wrote:
> Hello!
>
> I have a vanilla QTableView with SingleSelection and SelectRows and am
> trying to figure out how to set the text color of the current item for both
> when the row is selected and when it isn’t. This is important so that the
>
Hello!
I have a vanilla QTableView with SingleSelection and SelectRows and am trying
to figure out how to set the text color of the current item for both when the
row is selected and when it isn’t. This is important so that the user knows
which cell will be edited when they hit the enter key an