menu tearoffs/submenus not using stylesheet
I have customized my menu using a .qss stylesheet like this:
Code:
{
background-color: #eaeaea;
color: black;
}
{
color: rgb(213,213,213);
}
height: 1px;
background: black;
margin-left: 5px;
margin-right: 5px;
}
This works great for main menus. However one of the menuitems has its own submenu and that is not showing up with any of these properties. I tried doing:
Code:
{
background-color: #eaeaea;
color: black;
}
QMenu::tear-off
::item::disabled {
color: rgb(213,213,213);
}
but that has no effect. Is there a different way to do this?
Thanks!
Re: menu tearoffs/submenus not using stylesheet
use QMenu::tearoff, not tear-off
Re: menu tearoffs/submenus not using stylesheet
and you can set styleSheet to the whole app (qApp->setStyleSheet) and it will style all menus you create