PDA

View Full Version : Does etch-disabled-text work?



WinchellChung
23rd January 2008, 22:17
I'm using Qt 4.3.2 on Windows.

My QPushButtons, when in the disabled state, have their text rendered with a drop-shadow. I wish them to render without a drop shadow.

So in my *.qss file I had the following:



QPushButton:disabled
{
etch-disabled-text: 0;
}


which had absolutely no effect.

Any idea what I am doing wrong?

ashukla
24th January 2008, 05:19
I am telling you alternate way;
You can set the palette of Disabled QPushButton using with QtDesigner or by code. before setting the disabled property, setAutoFillBackground set True. Hoping its help you.