PDA

View Full Version : Stylesheet issue - setting color property in the :focus state



tarod
20th August 2015, 03:19
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?


QTextEdit:focus {
color: red;
background-color: grey;
}

QLineEdit:focus {
color: red;
background-color: grey;
}