PDA

View Full Version : Changing text colour of QLineEdit qss file



phillip_Qt
3rd April 2008, 13:49
Hi All.
I need u guys help.
I've a Line edit. whose background color is black. I need the the text color to be white, when i'll write some thing. I need to change through qss file. Here is the code of my qss file.
QLineEdit
{
background-color: Black;
border: 1px solid black;
}

Can any body plz tell me what to add.

Advancely Thanx 4 Help.

aamer4yu
3rd April 2008, 14:44
Cant you use color:your_color in the Stylesheet ??
like

QLineEdit
{
color : red;
background-color: Black;
border: 1px solid black;
}


:confused:

phillip_Qt
4th April 2008, 05:28
Cant you use color:your_color in the Stylesheet ??
like


:confused:

Thank you very much. Its working now.:)