PDA

View Full Version : How to change the background color of a QLineEdit?



feraudyh
17th August 2010, 17:14
I want to distinguish line edits that are set to readonly from the others by changing the background color. This is not obvious.

Lykurg
17th August 2010, 17:17
The easiest way is to use style sheets QLineEdit[readOnly="true"] {
/*...*/
}