How to change Text colour in EditText?
Hi all
Below i ve pasted my qss file code. I need to change the colour of Text to white in Edit Box. But i cannt figureout where to change.
So i need ur kind help.
Thank U All.
QSS CODE
....................
Code:
background-color: gray;/**********CHANGED beige*/
}
/* Nice Windows-XP-style password character. */
lineedit-password-character: 9679;
}
/* We provide a min-width and min-height for push buttons
so that they look elegant regardless of the width of the text. */
background-color: gray;/************CHANGED palegoldenrod*/
border-width: 2px;
border-color: darkkhaki;
border-style: solid;
border-radius: 5;
padding: 3px;
min-width: 9ex;
min-height: 2.5ex;
}
background-color: khaki;
}
/* Increase the padding, so the text is shifted when the button is
pressed. */
padding-left: 5px;
padding-top: 5px;
background-color: #d0d67c;
}
font: bold;
}
/* Mark mandatory fields with a brownish color. */
.mandatory {
color: brown;
}
/* Bold text on status bar looks awful. */
font: normal;
}
border-width: 1;
border-color: darkkhaki;
border-style: solid;
border-radius: 2;
}
background-color: black;/**********CHANGED cornsilk*/
selection-color: #0a214c;
selection-background-color: white;/********CHANGED wheat*/
}
/* We reserve 1 pixel space in padding. When we get the focus,
we kill the padding and enlarge the border. This makes the items
glow. */
border-width: 2px;
padding: 1px;
border-style: solid;
border-color: darkkhaki;
border-radius: 5px;
}
/* As mentioned above, eliminate the padding and increase the border. */
border-width: 3px;
padding: 0px;
}
/* A QLabel is a QFrame ... */
border: none;
padding: 0;
background: none;
}
/* A QToolTip is a QLabel ... */
border: 2px solid darkkhaki;
padding: 5px;
border-radius: 3px;
opacity: 200;
}
/* Nice to have the background color change when hovered. */
background-color: wheat;
}
/* Force the dialog's buttons to follow the Windows guidelines. */
button-layout: 0;
background-color: Gray;/**********ADDED*/
}
Re: How to change Text colour in EditText?
Re: How to change Text colour in EditText?
Quote:
Originally Posted by
jpn
Hi
i tried like QTextEdit { selection-background-color: black}. But only background colour is changing. I need to change the text colour to white and background color to black. I could not find How to change the text colour.
i ll be thankful for ur kind help.
Re: How to change Text colour in EditText?
And what is the name of the property when you follow the link? On the left, in bold.
Re: How to change Text colour in EditText?
Quote:
Originally Posted by
jpn
And what is the name of the property when you follow the link? On the left, in bold.
selection-background-color* . This i followd.
Re: How to change Text colour in EditText?
Quote:
Originally Posted by
phillip_Qt
selection-background-color* . This i followd.
The link I gave does not point there. I gave you a link to property called "color".
Re: How to change Text colour in EditText?
Quote:
Originally Posted by
jpn
The link I gave does not point there. I gave you a link to property called "color".
Thanx I tried like this color: white ;. and its coming in white colour.
Thax for ur reply.:)