문제

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.

도움이 되었습니까?

해결책

Style for the normal state button:

QPushButton
{
     color: red;
}

Style for the "Disabled" state button:

QPushButton:!enabled
{
     color:blue;
}

This might fix your problem

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top