QMenuBar CSS problem
-
Hi every body,
i have a problèm with stylesheet for QMenuBar i want to customize my bar menu on color gray (see the picture)
http://i.stack.imgur.com/rYqyP.png
please i need your help i used all technique Stylesheet and pallette it does’nt work :(
-
You have to set styles to the item:
@QMenuBar::item {}@
and to style the selected item:
@QMenuBar::item:selected { }@
-
it doesn't work i use this style :
@
background-color: rgb(125, 125, 125);
QMenuBar::item {background-color: rgb(125, 125, 125)}
QMenuBar::item:selected {background-color: rgb(125, 125, 125)}
@ -
I'm sorry! Try this:
@QMenu::item
{
background-color: rgb(125, 125, 125)
}QMenu::item:selected
{
background-color: rgb(125, 125, 125)
}QMenu::item:disabled
{
background-color: rgb(125, 125, 125)
}@ -
oh yeh it works thank you very much
-
mark as solved ;)