I have customized my menu using a .qss stylesheet like this:
{
background-color: #eaeaea;
color: black;
}
{
color: rgb(213,213,213);
}
height: 1px;
background: black;
margin-left: 5px;
margin-right: 5px;
}
QMenu
{
background-color: #eaeaea;
color: black;
}
QMenu::item::disabled
{
color: rgb(213,213,213);
}
QMenu::separator {
height: 1px;
background: black;
margin-left: 5px;
margin-right: 5px;
}
To copy to clipboard, switch view to plain text mode
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:
{
background-color: #eaeaea;
color: black;
}
QMenu::tear-off
::item::disabled {
color: rgb(213,213,213);
}
QMenu::tear-off
{
background-color: #eaeaea;
color: black;
}
QMenu::tear-off::item::disabled
{
color: rgb(213,213,213);
}
To copy to clipboard, switch view to plain text mode
but that has no effect. Is there a different way to do this?
Thanks!
Bookmarks