Qt Centre Forum
>
Qt
>
Newbie
> How to change the background color of a QLineEdit?
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"] {
/*...*/
}
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.