I've just found the next strange issue working with style sheets.

Using the following code, the text color is changed to red in QLineEdit but not in QTextEdit when the focus is got. In both cases, the background is OK. Does anyone know the reason why?

Qt Code:
  1. QTextEdit:focus {
  2. color: red;
  3. background-color: grey;
  4. }
  5.  
  6. QLineEdit:focus {
  7. color: red;
  8. background-color: grey;
  9. }
To copy to clipboard, switch view to plain text mode