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 and so they can navigate 
to a new cell using the arrow keys.

It seems that the following will do it, but it doesn’t apply when the row is 
selected.

QTableView::item:focus {                                                        
                                                                                
                  
    color: yellow;                                                              
                                                                                
                  
}

How can this be done?

Thanks!
-Patrick
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to