Home > Mobile >  The hover and pressed why set doesn't work here, please
The hover and pressed why set doesn't work here, please

Time:09-26

Can I use qt designer, select a qpushbutton, right-click menu, change the style sheet,
Background - color: RGB (0, 11, 210);
Color: RGB (255, 255, 0).
border:none;
75 10 pt font: "Microsoft jas black";
Hover {background - color: RGB (0, 112, 210)}
Pressed {background - color: RGB (255, 146, 132)}

Prompt effective style sheet

But after the program is running, the feeling is button did not respond, the background color has not changed, what reason is this excuse me?

CodePudding user response:

Effective style sheet just say there is no grammatical errors, but you add the hover and pressed using method is wrong, they are not attribute that is not class
 
* {background - color: RGB (0, 11, 210);
Color: RGB (255, 255, 0).
border:none;
75 10 pt font: "Microsoft jas black"; }
: hover {background - color: RGB (0, 112, 210)}
: pressed {background - color: RGB (255, 146, 132)}
  •  Tags:  
  • Qt
  • Related