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

2018-08-12 Thread Patrick Stinson
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. >

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

2018-08-10 Thread Patrick Stinson
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

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

2018-08-10 Thread Patrick Stinson
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; } >

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

2018-08-07 Thread Reinhardt Behm via Interest
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 >

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

2018-08-07 Thread Patrick Stinson
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