QMenuBar {background: grey; }/* all menus in the menu bar is gray
QMenuBar# menuM1:! Selected {background: red; 1}/* run, menu color not red
QMenu# menuM1 {background: red; 1}/* menu a red color also not
Using QMenuBar: : item {background: red; }/* menu 1-4 are red, but I want to set up different color
O great god answer same drop-down menu button after several action
how to set up a different color
CodePudding user response:
Look at QSS, id selector requires the use of the objectname