Qt - Stylesheet for disabled QPushButton under Windows 7 Basic Theme
Asked Answered
V

1

5

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.

Vincennes answered 31/10, 2012 at 12:33 Comment(0)
M
8

Style for the normal state button:

QPushButton
{
     color: red;
}

Style for the "Disabled" state button:

QPushButton:!enabled
{
     color:blue;
}

This might fix your problem

Machicolation answered 1/11, 2012 at 11:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.