Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt - Stylesheet for disabled QPushButton under Windows 7 Basic Theme

I can change the font and font-color of a QPushButton using the StyleSheets. The Problem is that under the old Windows Theme the disabled Buttons shows a shaded font, but i dont know how to get rid of this shaded front through StyleSheets. Can anyone please suggest your ideas about it. Thanks in Advance.

like image 280
New Moon Avatar asked Oct 31 '12 12:10

New Moon


1 Answers

Style for the normal state button:

QPushButton
{
     color: red;
}

Style for the "Disabled" state button:

QPushButton:!enabled
{
     color:blue;
}

This might fix your problem

like image 55
warunanc Avatar answered Jan 01 '23 13:01

warunanc